Class TimeSlotHome


  • public final class TimeSlotHome
    extends java.lang.Object
    This 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 TimeSlot create​(TimeSlot timeSlot)
      Create an instance of the TimeSlot class
      static void delete​(int nKey)
      Delete the TimeSlot whose identifier is specified in parameter
      static void deleteByIdWorkingDay​(int nIdWorkingDay)
      Delete TimeSlot whose id working day is specified in parameter
      static java.util.List<TimeSlot> findByIdWorkingDay​(int nIdWorkingDay)
      Get all the time slots of the working day given
      static TimeSlot findByPrimaryKey​(int nKey)
      Returns an instance of the TimeSlot whose identifier is specified in parameter
      static TimeSlot update​(TimeSlot timeSlot)
      Update of the TimeSlot which is specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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