Class WorkingDayDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.business.planning.WorkingDayDAO
- All Implemented Interfaces:
IWorkingDayDAO
This class provides Data Access methods for Working Day objects
- Author:
- Laurent Payen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteByIdReservationRule(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a working day by id reservation rulefindByIdReservationRule(int nIdReservationRuleRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get all the working days of the weekdefinition givenvoidinsert(WorkingDay workingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the tableselect(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablevoidupdate(WorkingDay workingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
WorkingDayDAO
public WorkingDayDAO()
-
-
Method Details
-
insert
Description copied from interface:IWorkingDayDAOInsert a new record in the table- Specified by:
insertin interfaceIWorkingDayDAO- Parameters:
workingDay- instance of the WorkingDay object to insertplugin- the plugin
-
update
Description copied from interface:IWorkingDayDAOUpdate the record in the table- Specified by:
updatein interfaceIWorkingDayDAO- Parameters:
workingDay- the reference of the WorkingDayplugin- the plugin
-
delete
public void delete(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IWorkingDayDAODelete a record from the table- Specified by:
deletein interfaceIWorkingDayDAO- Parameters:
nIdWorkingDay- identifier of the WorkingDay to deleteplugin- the plugin
-
deleteByIdReservationRule
public void deleteByIdReservationRule(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IWorkingDayDAODelete a working day by id reservation rule- Specified by:
deleteByIdReservationRulein interfaceIWorkingDayDAO- Parameters:
nIdReservationRule- the reservation rule idplugin- the plugin
-
select
Description copied from interface:IWorkingDayDAOLoad the data from the table- Specified by:
selectin interfaceIWorkingDayDAO- Parameters:
nIdWorkingDay- the identifier of the WorkingDayplugin- the plugin- Returns:
- the instance of the WorkingDay
-
findByIdReservationRule
public List<WorkingDay> findByIdReservationRule(int nIdReservationRuleRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IWorkingDayDAOGet all the working days of the weekdefinition given- Specified by:
findByIdReservationRulein interfaceIWorkingDayDAO- Parameters:
nIdReservationRuleRule- the WeekDefinitionRule idplugin- the Plugin- Returns:
- the list of all the working days of the weekdefinition
-