Class WorkingDayHome


  • public final class WorkingDayHome
    extends Object
    This class provides instances management methods for Working Day objects
    Author:
    Laurent Payen
    • Method Detail

      • create

        public static WorkingDay create​(WorkingDay workingDay)
        Create an instance of the WorkingDay class
        Parameters:
        workingDay - The instance of the WorkingDay which contains the informations to store
        Returns:
        The instance of the WorkingDay which has been created with its primary key.
      • update

        public static WorkingDay update​(WorkingDay workingDay)
        Update of the WorkingDay which is specified in parameter
        Parameters:
        workingDay - The instance of the WorkingDay which contains the data to store
        Returns:
        The instance of the WorkingDay which has been updated
      • delete

        public static void delete​(int nKey)
        Delete the WorkingDay whose identifier is specified in parameter
        Parameters:
        nKey - The WorkingDay Id
      • deleteByIdReservationRule

        public static void deleteByIdReservationRule​(int nIdReservationRule)
        Delete the working day whose id reservation rule is specified in parameter
        Parameters:
        nIdReservationRule - the reservation rule id
      • findByPrimaryKey

        public static WorkingDay findByPrimaryKey​(int nKey)
        Returns an instance of the WorkingDay whose identifier is specified in parameter
        Parameters:
        nKey - The WorkingDay primary key
        Returns:
        an instance of the WorkingDay
      • findByIdReservationRule

        public static List<WorkingDay> findByIdReservationRule​(int nIdReservationRule)
        Find the Working Day of the Reservation Rule
        Parameters:
        nIdReservationRule - the Reservation Id Rule
        Returns:
        a list of the workingDay defined rule