Interface IDemandDAO
- All Known Implementing Classes:
DemandDAO
public interface IDemandDAO
IDemandDAO
-
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
-
Method Details
-
newPrimaryKey
int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generate a new primary key- Parameters:
plugin- thePlugin- Returns:
- a new primary key
-
insert
Insert a new record in the table.- Parameters:
demand- instanceplugin- the Plugin- Returns:
- the newly created demand id
-
store
Update the record in the table- Parameters:
demand- the reference of the objectplugin- the Plugin
-
delete
void delete(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdDemand- int identifier of the demand to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nIdDemand- The identifier of the demandplugin- the Plugin- Returns:
- The instance of the object
-
selectAll
Find all demands- Parameters:
plugin-Plugin- Returns:
- a list of
Demand
-
selectByFilter
List<Demand> selectByFilter(DemandFilter dFilter, IPaginationProperties paginationProperties, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by filter- Parameters:
dFilter- the filterpaginationProperties- the pagination properties (can be null)plugin-Plugin- Returns:
- a list of
Demand
-
countByFilter
Count results by filter- Parameters:
dFilter- the filterplugin-Plugin- Returns:
- the number of result
-
loadByRemoteKey
Demand loadByRemoteKey(String strRemoteId, int nIdDemandType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load demand by Remote Id and id demand- Parameters:
strRemoteId- the remote IdnIdDemandType- the Id demand typeplugin- the plugin- Returns:
- The instance of the object
-