Class ClosingDayDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.business.planning.ClosingDayDAO
- All Implemented Interfaces:
IClosingDayDAO
This class provides Data Access methods for Closing Day objects
- Author:
- Laurent Payen
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
ClosingDayDAO
public ClosingDayDAO()
-
-
Method Details
-
insert
Description copied from interface:IClosingDayDAOInsert a new record in the table.- Specified by:
insertin interfaceIClosingDayDAO- Parameters:
closingDay- instance of the Closing Day object to insertplugin- the Plugin
-
update
Description copied from interface:IClosingDayDAOUpdate the record in the table- Specified by:
updatein interfaceIClosingDayDAO- Parameters:
closingDay- the reference of the Closing Dayplugin- the Plugin
-
delete
public void delete(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IClosingDayDAODelete a record from the table- Specified by:
deletein interfaceIClosingDayDAO- Parameters:
nIdClosingDay- int identifier of the Closing Day to deleteplugin- the Plugin
-
select
Description copied from interface:IClosingDayDAOLoad the data from the table- Specified by:
selectin interfaceIClosingDayDAO- Parameters:
nIdClosingDay- The identifier of the Closing Dayplugin- the Plugin- Returns:
- The instance of the Closing Day
-
findByIdFormAndDateOfClosingDay
public ClosingDay findByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IClosingDayDAOReturn the closing day if exists- Specified by:
findByIdFormAndDateOfClosingDayin interfaceIClosingDayDAO- Parameters:
nIdForm- the Form IddateOfCLosingDay- the date of the closing dayplugin- the plugin- Returns:
- the closing day if exists
-
deleteByIdFormAndDateOfClosingDay
public void deleteByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IClosingDayDAODelete a record from the table- Specified by:
deleteByIdFormAndDateOfClosingDayin interfaceIClosingDayDAO- Parameters:
nIdForm- the Form IddateOfCLosingDay- the date of the closing dayplugin- the plugin
-
deleteByIdForm
public void deleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IClosingDayDAODelete a record from the table- Specified by:
deleteByIdFormin interfaceIClosingDayDAO- Parameters:
nIdForm- the Form Idplugin- the plugin
-
findByIdForm
public List<ClosingDay> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IClosingDayDAOReturns the closing days of a form- Specified by:
findByIdFormin interfaceIClosingDayDAO- Parameters:
nIdForm- the form Idplugin- the plugin- Returns:
- a list of the closing days of the form
-
findByIdFormAndDateRange
public List<ClosingDay> findByIdFormAndDateRange(int nIdForm, LocalDate startingDate, LocalDate endingDate, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IClosingDayDAOReturns the closing days of the form on a period- Specified by:
findByIdFormAndDateRangein interfaceIClosingDayDAO- Parameters:
nIdForm- the form IdstartingDate- the starting dateendingDate- the ending dateplugin- the plugin- Returns:
- the list of the closing days that matches the criteria
-