Class TimeSlotHome
java.lang.Object
fr.paris.lutece.plugins.appointment.business.planning.TimeSlotHome
This class provides instances management methods for Time Slot objects
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeSlotCreate an instance of the TimeSlot classstatic voiddelete(int nKey) Delete the TimeSlot whose identifier is specified in parameterstatic voiddeleteByIdWorkingDay(int nIdWorkingDay) Delete TimeSlot whose id working day is specified in parameterfindByIdWorkingDay(int nIdWorkingDay) Get all the time slots of the working day givenstatic TimeSlotfindByPrimaryKey(int nKey) Returns an instance of the TimeSlot whose identifier is specified in parameterstatic TimeSlotUpdate of the TimeSlot which is specified in parameter
-
Method Details
-
create
Create an instance of the TimeSlot class- Parameters:
timeSlot- The instance of the TimeSlot which contains the informations to store- Returns:
- The instance of the TimeSlot which has been created with its primary key.
-
update
Update of the TimeSlot which is specified in parameter- Parameters:
timeSlot- The instance of the TimeSlot which contains the data to store- Returns:
- The instance of the TimeSlot which has been updated
-
delete
public static void delete(int nKey) Delete the TimeSlot whose identifier is specified in parameter- Parameters:
nKey- The TimeSlot Id
-
deleteByIdWorkingDay
public static void deleteByIdWorkingDay(int nIdWorkingDay) Delete TimeSlot whose id working day is specified in parameter- Parameters:
nIdWorkingDay- identifier of the working day
-
findByPrimaryKey
Returns an instance of the TimeSlot whose identifier is specified in parameter- Parameters:
nKey- The TimeSlot primary key- Returns:
- an instance of the TimeSlot
-
findByIdWorkingDay
Get all the time slots of the working day given- Parameters:
nIdWorkingDay- the working day id- Returns:
- the list of all the time slots of the working day
-