public final class WeekDefinitionDAO extends UtilDAO implements IWeekDefinitionDAO
BEAN_NAME
Constructor and Description |
---|
WeekDefinitionDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdWeekDefinition,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
List<WeekDefinition> |
findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get all the week definitions of a form
|
WeekDefinition |
findByIdFormAndDateOfApply(int nIdForm,
LocalDate dateOfApply,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the week definitions of a form for the date of apply
|
void |
insert(WeekDefinition weekDefinition,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table
|
WeekDefinition |
select(int nIdWeekDefinition,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
void |
update(WeekDefinition weekDefinition,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
getNewPrimaryKey
public void insert(WeekDefinition weekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IWeekDefinitionDAO
insert
in interface IWeekDefinitionDAO
plugin
- the pluginpublic void update(WeekDefinition weekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IWeekDefinitionDAO
update
in interface IWeekDefinitionDAO
weekDefinition
- the reference of the WeekDefinitionplugin
- the pluginpublic void delete(int nIdWeekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IWeekDefinitionDAO
delete
in interface IWeekDefinitionDAO
nIdWeekDefinition
- identifier of the WeekDefinition to deleteplugin
- the pluginpublic WeekDefinition select(int nIdWeekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IWeekDefinitionDAO
select
in interface IWeekDefinitionDAO
nIdWeekDefinition
- the identifier of the weekDefinitionplugin
- the pluginpublic List<WeekDefinition> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IWeekDefinitionDAO
findByIdForm
in interface IWeekDefinitionDAO
nIdForm
- the form idplugin
- the pluginpublic WeekDefinition findByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IWeekDefinitionDAO
findByIdFormAndDateOfApply
in interface IWeekDefinitionDAO
nIdForm
- the form iddateOfApply
- the date of applyplugin
- the pluginCopyright © 2020 City of Paris. All rights reserved.