fr.paris.lutece.plugins.crm.business.demand
Class DemandDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.business.demand.DemandDAO
All Implemented Interfaces:
IDemandDAO

public class DemandDAO
extends Object
implements IDemandDAO

DemandDAO


Constructor Summary
DemandDAO()
           
 
Method Summary
 int countByFilter(DemandFilter dFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Count results by filter
 void delete(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 int insert(Demand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Demand load(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generate a new primary key
 List<Demand> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all demands
 List<Demand> selectByFilter(DemandFilter dFilter, IPaginationProperties paginationProperties, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find by filter
 void store(Demand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemandDAO

public DemandDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generate a new primary key

Specified by:
newPrimaryKey in interface IDemandDAO
Parameters:
plugin - the Plugin
Returns:
a new primary key

insert

public int insert(Demand demand,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IDemandDAO
Parameters:
demand - instance
plugin - the Plugin
Returns:
the newly created demand id

load

public Demand load(int nIdDemand,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Specified by:
load in interface IDemandDAO
Parameters:
nIdDemand - The identifier of the demand
plugin - the Plugin
Returns:
The instance of the object

store

public void store(Demand demand,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IDemandDAO
Parameters:
demand - the reference of the object
plugin - the Plugin

delete

public void delete(int nIdDemand,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface IDemandDAO
Parameters:
nIdDemand - int identifier of the demand to delete
plugin - the Plugin

selectAll

public List<Demand> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all demands

Specified by:
selectAll in interface IDemandDAO
Parameters:
plugin - Plugin
Returns:
a list of Demand

selectByFilter

public List<Demand> selectByFilter(DemandFilter dFilter,
                                   IPaginationProperties paginationProperties,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by filter

Specified by:
selectByFilter in interface IDemandDAO
Parameters:
dFilter - the filter
paginationProperties - the pagination properties (can be null)
plugin - Plugin
Returns:
a list of Demand

countByFilter

public int countByFilter(DemandFilter dFilter,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count results by filter

Specified by:
countByFilter in interface IDemandDAO
Parameters:
dFilter - the filter
plugin - Plugin
Returns:
the number of result


Copyright © 2013 Mairie de Paris. All Rights Reserved.