Class TimeSlotDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.business.planning.TimeSlotDAO
- All Implemented Interfaces:
ITimeSlotDAO
This class provides Data Access methods for Time Slot objects
- Author:
- Laurent Payen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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 dayfindByIdWorkingDay(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get all the time slots of the working dayvoidInsert a new record in the tableselect(int nIdTimeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablevoidUpdate the record in the table
-
Constructor Details
-
TimeSlotDAO
public TimeSlotDAO()
-
-
Method Details
-
insert
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
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
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
-