Interface IClosingDayDAO
- All Known Implementing Classes:
ClosingDayDAO
public interface IClosingDayDAO
ClosingDay DAO Interface
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the closing days of a formfindByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the closing day if existsfindByIdFormAndDateRange(int nIdForm, LocalDate startingDate, LocalDate endingDate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the closing days of the form on a periodvoidinsert(ClosingDay closingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.select(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablevoidupdate(ClosingDay closingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
closingDay- instance of the Closing Day object to insertplugin- the Plugin
-
update
Update the record in the table- Parameters:
closingDay- the reference of the Closing Dayplugin- the Plugin
-
delete
void delete(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdClosingDay- int identifier of the Closing Day to deleteplugin- the Plugin
-
deleteByIdFormAndDateOfClosingDay
void deleteByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdForm- the Form IddateOfCLosingDay- the date of the closing dayplugin- the plugin
-
deleteByIdForm
void deleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdForm- the Form Idplugin- the plugin
-
select
Load the data from the table- Parameters:
nIdClosingDay- The identifier of the Closing Dayplugin- the Plugin- Returns:
- The instance of the Closing Day
-
findByIdFormAndDateOfClosingDay
ClosingDay findByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the closing day if exists- Parameters:
nIdForm- the Form IddateOfCLosingDay- the date of the closing dayplugin- the plugin- Returns:
- the closing day if exists
-
findByIdForm
Returns the closing days of a form- Parameters:
nIdForm- the form Idplugin- the plugin- Returns:
- a list of the closing days of the form
-
findByIdFormAndDateRange
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- Parameters:
nIdForm- the form IdstartingDate- the starting dateendingDate- the ending dateplugin- the plugin- Returns:
- the list of the closing days that matches the criteria
-