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 IDemandTypeDAO
plugin
- The Pluginpublic int insert(DemandType demandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IDemandTypeDAO
demandType
- instanceplugin
- the Pluginpublic DemandType load(int nIdDemandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IDemandTypeDAO
nIdDemandType
- The identifier of the DemandTypeplugin
- the Pluginpublic void store(DemandType demandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IDemandTypeDAO
demandType
- the reference of the objectplugin
- the Pluginpublic void delete(int nIdDemandType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IDemandTypeDAO
nIdDemandType
- int identifier of the DemandType to deleteplugin
- the Pluginpublic List<DemandType> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll
in interface IDemandTypeDAO
plugin
- Plugin
DemandType
public List<DemandType> selectByIdCategoryAndDate(int nIdCategory, Date dateToday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByIdCategoryAndDate
in interface IDemandTypeDAO
nIdCategory
- the ID categorydateToday
- todayplugin
- Plugin
DemandType
public DemandType selectByOrder(int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByOrder
in interface IDemandTypeDAO
nOrder
- the orderplugin
- the Plugin
DemandType
public int selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMaxOrder
in interface IDemandTypeDAO
plugin
- Plugin
public List<DemandType> selectDemandTypesByFilter(DemandTypeFilter dtFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDemandTypesByFilter
in interface IDemandTypeDAO
dtFilter
- the filterplugin
- Plugin
DemandType
public List<DemandType> selectNoDateEndDemandTypes(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNoDateEndDemandTypes
in interface IDemandTypeDAO
plugin
- the pluginCopyright © 2019 City of Paris. All rights reserved.