Class WorkingDayHome


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static WorkingDay create​(WorkingDay workingDay)
      Create an instance of the WorkingDay class
      static void delete​(int nKey)
      Delete the WorkingDay whose identifier is specified in parameter
      static void deleteByIdReservationRule​(int nIdReservationRule)
      Delete the working day whose id reservation rule is specified in parameter
      static java.util.List<WorkingDay> findByIdReservationRule​(int nIdReservationRule)
      Find the Working Day of the Reservation Rule
      static WorkingDay findByPrimaryKey​(int nKey)
      Returns an instance of the WorkingDay whose identifier is specified in parameter
      static WorkingDay update​(WorkingDay workingDay)
      Update of the WorkingDay 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 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 java.util.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