public final class ClosingDayDAO extends UtilDAO implements IClosingDayDAO
BEAN_NAME
Constructor and Description |
---|
ClosingDayDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdClosingDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
List<ClosingDay> |
findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the closing days of a form
|
ClosingDay |
findByIdFormAndDateOfClosingDay(int nIdForm,
LocalDate dateOfCLosingDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the closing day if exists
|
List<ClosingDay> |
findByIdFormAndDateRange(int nIdForm,
LocalDate startingDate,
LocalDate endingDate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the closing days of the form on a period
|
void |
insert(ClosingDay closingDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
ClosingDay |
select(int nIdClosingDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
void |
update(ClosingDay closingDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
getNewPrimaryKey
public void insert(ClosingDay closingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IClosingDayDAO
insert
in interface IClosingDayDAO
closingDay
- instance of the Closing Day object to insertplugin
- the Pluginpublic void update(ClosingDay closingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IClosingDayDAO
update
in interface IClosingDayDAO
closingDay
- the reference of the Closing Dayplugin
- the Pluginpublic void delete(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IClosingDayDAO
delete
in interface IClosingDayDAO
nIdClosingDay
- int identifier of the Closing Day to deleteplugin
- the Pluginpublic ClosingDay select(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IClosingDayDAO
select
in interface IClosingDayDAO
nIdClosingDay
- The identifier of the Closing Dayplugin
- the Pluginpublic ClosingDay findByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IClosingDayDAO
findByIdFormAndDateOfClosingDay
in interface IClosingDayDAO
nIdForm
- the Form IddateOfCLosingDay
- the date of the closing dayplugin
- the pluginpublic List<ClosingDay> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IClosingDayDAO
findByIdForm
in interface IClosingDayDAO
nIdForm
- the form Idplugin
- the pluginpublic List<ClosingDay> findByIdFormAndDateRange(int nIdForm, LocalDate startingDate, LocalDate endingDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IClosingDayDAO
findByIdFormAndDateRange
in interface IClosingDayDAO
nIdForm
- the form IdstartingDate
- the starting dateendingDate
- the ending dateplugin
- the pluginCopyright © 2020 City of Paris. All rights reserved.