Class DemandDAO
java.lang.Object
fr.paris.lutece.plugins.crm.business.demand.DemandDAO
- All Implemented Interfaces:
IDemandDAO
DemandDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountByFilter(DemandFilter dFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count results by filtervoiddelete(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tableintInsert a new record in the table.load(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadByRemoteKey(String strRemoteId, int nIdDemandType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load demand by Remote Id and id demandintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generate a new primary keyselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all demandsselectByFilter(DemandFilter dFilter, IPaginationProperties paginationProperties, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by filtervoidUpdate the record in the table
-
Constructor Details
-
DemandDAO
public DemandDAO()
-
-
Method Details
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generate a new primary key- Specified by:
newPrimaryKeyin interfaceIDemandDAO- Parameters:
plugin- thePlugin- Returns:
- a new primary key
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIDemandDAO- Parameters:
demand- instanceplugin- the Plugin- Returns:
- the newly created demand id
-
load
Load the data from the table- Specified by:
loadin interfaceIDemandDAO- Parameters:
nIdDemand- The identifier of the demandplugin- the Plugin- Returns:
- The instance of the object
-
loadByRemoteKey
public Demand loadByRemoteKey(String strRemoteId, int nIdDemandType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load demand by Remote Id and id demand- Specified by:
loadByRemoteKeyin interfaceIDemandDAO- Parameters:
strRemoteId- the remote IdnIdDemandType- the Id demand typeplugin- the plugin- Returns:
- The instance of the object
-
store
Update the record in the table- Specified by:
storein interfaceIDemandDAO- Parameters:
demand- the reference of the objectplugin- the Plugin
-
delete
public void delete(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIDemandDAO- Parameters:
nIdDemand- int identifier of the demand to deleteplugin- the Plugin
-
selectAll
Find all demands- Specified by:
selectAllin interfaceIDemandDAO- 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:
selectByFilterin interfaceIDemandDAO- Parameters:
dFilter- the filterpaginationProperties- the pagination properties (can be null)plugin-Plugin- Returns:
- a list of
Demand
-
countByFilter
Count results by filter- Specified by:
countByFilterin interfaceIDemandDAO- Parameters:
dFilter- the filterplugin-Plugin- Returns:
- the number of result
-