Interface IDemandDAO
-
- All Known Implementing Classes:
DemandDAO
public interface IDemandDAOIDemandDAO
-
-
Method Summary
All Methods Instance Methods Abstract 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
int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generate a new primary key- Parameters:
plugin- thePlugin- Returns:
- a new primary key
-
insert
int insert(Demand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
demand- instanceplugin- the Plugin- Returns:
- the newly created demand id
-
store
void store(Demand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
Demand load(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nIdDemand- The identifier of the demandplugin- the Plugin- Returns:
- The instance of the object
-
selectAll
List<Demand> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
int countByFilter(DemandFilter dFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
-
-