public final class DbDemandDAO extends Object implements IDbDemandDAO
| Constructor and Description |
|---|
DbDemandDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(DbDemand demand,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
DbDemand |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
List<DbDemand> |
selectByCustomer(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select all demands for a given customer
|
DbDemand |
selectByIdAndType(String strDemandId,
String strDemandTypeId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select a demand by its ID and Type
|
List<DbDemand> |
selectDemandsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the demand objects and returns them as a collection
|
List<Integer> |
selectIdDemandsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the demand objects and returns them as a collection
|
void |
store(DbDemand demand,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Pluginpublic void insert(DbDemand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IDbDemandDAOdemand - instance of the DbDemand object to insertplugin - the Pluginpublic DbDemand load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IDbDemandDAOnKey - The identifier of the demandplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IDbDemandDAOnKey - The identifier of the DbDemand to deleteplugin - the Pluginpublic void store(DbDemand demand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IDbDemandDAOdemand - the reference of the DbDemandplugin - the Pluginpublic List<DbDemand> selectDemandsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDemandsList in interface IDbDemandDAOplugin - the Pluginpublic List<Integer> selectIdDemandsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdDemandsList in interface IDbDemandDAOplugin - the Pluginpublic DbDemand selectByIdAndType(String strDemandId, String strDemandTypeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByIdAndType in interface IDbDemandDAOstrDemandId - The demand IDstrDemandTypeId - The demand Typeplugin - The pluginpublic List<DbDemand> selectByCustomer(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IDbDemandDAOselectByCustomer in interface IDbDemandDAOstrCustomerId - The customer IDplugin - The pluginCopyright © 2016 City of Paris. All rights reserved.