Class DemandDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.business.demand.DemandDAO
-
- All Implemented Interfaces:
IDemandDAO
public class DemandDAO extends Object implements IDemandDAO
DemandDAO
-
-
Constructor Summary
Constructors Constructor Description DemandDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountByFilter(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(Demand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Demandload(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableDemandloadByRemoteKey(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 keyList<Demand>selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Find all demandsList<Demand>selectByFilter(DemandFilter dFilter, IPaginationProperties paginationProperties, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find by filtervoidstore(Demand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
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
public int insert(Demand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIDemandDAO- Parameters:
demand- instanceplugin- 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:
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
public void store(Demand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public List<Demand> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public int countByFilter(DemandFilter dFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count results by filter- Specified by:
countByFilterin interfaceIDemandDAO- Parameters:
dFilter- the filterplugin-Plugin- Returns:
- the number of result
-
-