public class DemandTypeDAO extends Object implements IDemandTypeDAO
| Constructor and Description |
|---|
DemandTypeDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdDemandType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
int |
insert(DemandType demandType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
DemandType |
load(int nIdDemandType,
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<DemandType> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all demand types
|
List<DemandType> |
selectByIdCategoryAndDate(int nIdCategory,
Date dateToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all demand types for the LuteceUser
|
DemandType |
selectByOrder(int nOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by order
|
List<DemandType> |
selectDemandTypesByFilter(DemandTypeFilter dtFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by filter
|
int |
selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the max order
|
List<DemandType> |
selectNoDateEndDemandTypes(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the demand types that have not a date end
|
void |
store(DemandType demandType,
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)
newPrimaryKey in interface IDemandTypeDAOplugin - The Pluginpublic int insert(DemandType demandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IDemandTypeDAOdemandType - instanceplugin - the Pluginpublic DemandType load(int nIdDemandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IDemandTypeDAOnIdDemandType - The identifier of the DemandTypeplugin - the Pluginpublic void store(DemandType demandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IDemandTypeDAOdemandType - the reference of the objectplugin - the Pluginpublic void delete(int nIdDemandType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IDemandTypeDAOnIdDemandType - int identifier of the DemandType to deleteplugin - the Pluginpublic List<DemandType> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll in interface IDemandTypeDAOplugin - PluginDemandTypepublic List<DemandType> selectByIdCategoryAndDate(int nIdCategory, Date dateToday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByIdCategoryAndDate in interface IDemandTypeDAOnIdCategory - the ID categorydateToday - todayplugin - PluginDemandTypepublic DemandType selectByOrder(int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByOrder in interface IDemandTypeDAOnOrder - the orderplugin - the PluginDemandTypepublic int selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMaxOrder in interface IDemandTypeDAOplugin - Pluginpublic List<DemandType> selectDemandTypesByFilter(DemandTypeFilter dtFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDemandTypesByFilter in interface IDemandTypeDAOdtFilter - the filterplugin - PluginDemandTypepublic List<DemandType> selectNoDateEndDemandTypes(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNoDateEndDemandTypes in interface IDemandTypeDAOplugin - the pluginCopyright © 2014 Mairie de Paris. All rights reserved.