Class DemandTypeDAO
java.lang.Object
fr.paris.lutece.plugins.crm.business.demand.DemandTypeDAO
- All Implemented Interfaces:
IDemandTypeDAO
DemandTypeDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdDemandType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tableintinsert(DemandType demandType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nIdDemandType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generates a new primary keyselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all demand typesselectByIdCategoryAndDate(int nIdCategory, Date dateToday, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all demand types for the LuteceUserselectByOrder(int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by orderselectDemandTypesByFilter(DemandTypeFilter dtFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by filterintselectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find the max orderselectNoDateEndDemandTypes(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find the demand types that have not a date endvoidstore(DemandType demandType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
DemandTypeDAO
public DemandTypeDAO()
-
-
Method Details
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generates a new primary key- Specified by:
newPrimaryKeyin interfaceIDemandTypeDAO- Parameters:
plugin- The Plugin- Returns:
- The new primary key
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIDemandTypeDAO- Parameters:
demandType- instanceplugin- the Plugin- Returns:
- the key of the newly created object
-
load
Load the data from the table- Specified by:
loadin interfaceIDemandTypeDAO- Parameters:
nIdDemandType- The identifier of the DemandTypeplugin- the Plugin- Returns:
- The instance of the object
-
store
Update the record in the table- Specified by:
storein interfaceIDemandTypeDAO- Parameters:
demandType- the reference of the objectplugin- the Plugin
-
delete
public void delete(int nIdDemandType, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIDemandTypeDAO- Parameters:
nIdDemandType- int identifier of the DemandType to deleteplugin- the Plugin
-
selectAll
Find all demand types- Specified by:
selectAllin interfaceIDemandTypeDAO- Parameters:
plugin-Plugin- Returns:
- a list of
DemandType
-
selectByIdCategoryAndDate
public List<DemandType> selectByIdCategoryAndDate(int nIdCategory, Date dateToday, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all demand types for the LuteceUser- Specified by:
selectByIdCategoryAndDatein interfaceIDemandTypeDAO- Parameters:
nIdCategory- the ID categorydateToday- todayplugin-Plugin- Returns:
- a list of
DemandType
-
selectByOrder
Find by order- Specified by:
selectByOrderin interfaceIDemandTypeDAO- Parameters:
nOrder- the orderplugin- thePlugin- Returns:
- a
DemandType
-
selectMaxOrder
public int selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find the max order- Specified by:
selectMaxOrderin interfaceIDemandTypeDAO- Parameters:
plugin-Plugin- Returns:
- the max order
-
selectDemandTypesByFilter
public List<DemandType> selectDemandTypesByFilter(DemandTypeFilter dtFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by filter- Specified by:
selectDemandTypesByFilterin interfaceIDemandTypeDAO- Parameters:
dtFilter- the filterplugin-Plugin- Returns:
- a list of
DemandType
-
selectNoDateEndDemandTypes
public List<DemandType> selectNoDateEndDemandTypes(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find the demand types that have not a date end- Specified by:
selectNoDateEndDemandTypesin interfaceIDemandTypeDAO- Parameters:
plugin- the plugin- Returns:
- a list of demand types
-