Class WorkingDayDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.planning.WorkingDayDAO
-
- All Implemented Interfaces:
IWorkingDayDAO
public final class WorkingDayDAO extends java.lang.Object implements IWorkingDayDAO
This class provides Data Access methods for Working Day objects- Author:
- Laurent Payen
-
-
Constructor Summary
Constructors Constructor Description WorkingDayDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(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 rulejava.util.List<WorkingDay>findByIdReservationRule(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 tableWorkingDayselect(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
-
-
-
Method Detail
-
insert
public void insert(WorkingDay workingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public void update(WorkingDay workingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public WorkingDay select(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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 java.util.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
-
-