Interface IClosingDayDAO
-
- All Known Implementing Classes:
ClosingDayDAO
public interface IClosingDayDAOClosingDay DAO Interface- Author:
- Laurent Payen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(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 tableList<ClosingDay>findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the closing days of a formClosingDayfindByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the closing day if existsList<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 periodvoidinsert(ClosingDay closingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.ClosingDayselect(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 Detail
-
insert
void insert(ClosingDay closingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
closingDay- instance of the Closing Day object to insertplugin- the Plugin
-
update
void update(ClosingDay closingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
ClosingDay select(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
List<ClosingDay> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
-
-