Class TimeSlotDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.planning.TimeSlotDAO
-
- All Implemented Interfaces:
ITimeSlotDAO
public final class TimeSlotDAO extends Object implements ITimeSlotDAO
This class provides Data Access methods for Time Slot objects- Author:
- Laurent Payen
-
-
Constructor Summary
Constructors Constructor Description TimeSlotDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdTimeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteByIdWorkingDay(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table by working dayList<TimeSlot>findByIdWorkingDay(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get all the time slots of the working dayvoidinsert(TimeSlot timeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the tableTimeSlotselect(int nIdTimeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablevoidupdate(TimeSlot timeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(TimeSlot timeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITimeSlotDAOInsert a new record in the table- Specified by:
insertin interfaceITimeSlotDAO- Parameters:
timeSlot- instance of the timeSlot object to insertplugin- the plugin
-
update
public void update(TimeSlot timeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITimeSlotDAOUpdate the record in the table- Specified by:
updatein interfaceITimeSlotDAO- Parameters:
timeSlot- the reference of the timeSlotplugin- the plugin
-
delete
public void delete(int nIdTimeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:ITimeSlotDAODelete a record from the table- Specified by:
deletein interfaceITimeSlotDAO- Parameters:
nIdTimeSlot- identifier of the timeSlot to deleteplugin- the plugin
-
deleteByIdWorkingDay
public void deleteByIdWorkingDay(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:ITimeSlotDAODelete a record from the table by working day- Specified by:
deleteByIdWorkingDayin interfaceITimeSlotDAOplugin- the plugin
-
select
public TimeSlot select(int nIdTimeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITimeSlotDAOLoad the data from the table- Specified by:
selectin interfaceITimeSlotDAO- Parameters:
nIdTimeSlot- the identifier of the timeSlotplugin- the plugin- Returns:
- the instance of the timeSlot
-
findByIdWorkingDay
public List<TimeSlot> findByIdWorkingDay(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITimeSlotDAOGet all the time slots of the working day- Specified by:
findByIdWorkingDayin interfaceITimeSlotDAO- Parameters:
nIdWorkingDay- the working day idplugin- the plugin- Returns:
- the list of all the time slots of the working day
-
-