Class TimeSlotHome
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.planning.TimeSlotHome
-
public final class TimeSlotHome extends java.lang.ObjectThis class provides instances management methods for Time Slot objects- Author:
- Laurent Payen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeSlotcreate(TimeSlot timeSlot)Create 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 parameterstatic java.util.List<TimeSlot>findByIdWorkingDay(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(TimeSlot timeSlot)Update of the TimeSlot which is specified in parameter
-
-
-
Method Detail
-
create
public static TimeSlot create(TimeSlot timeSlot)
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
public static TimeSlot update(TimeSlot timeSlot)
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
public static TimeSlot findByPrimaryKey(int nKey)
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
public static java.util.List<TimeSlot> findByIdWorkingDay(int nIdWorkingDay)
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
-
-