Class TimeSlotHome


  • public final class TimeSlotHome
    extends Object
    This class provides instances management methods for Time Slot objects
    Author:
    Laurent Payen
    • 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 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