java.lang.Object
fr.paris.lutece.plugins.appointment.business.planning.ClosingDayHome

public final class ClosingDayHome extends Object
This class provides instances management methods for Closing Day objects
Author:
Laurent Payen
  • Method Details

    • create

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

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

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

      public static void deleteByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay)
      Delete a record from the table
      Parameters:
      nIdForm - the Form Id
      dateOfCLosingDay - the date of the closing day
    • deleteByIdForm

      public static void deleteByIdForm(int nIdForm)
      Delete a record from the table
      Parameters:
      nIdForm - the Form Id
      dateOfCLosingDay - the date of the closing day
    • findByPrimaryKey

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

      public static List<ClosingDay> findByIdForm(int nIdForm)
      Returns all the Closing Days of a form
      Parameters:
      nIdForm - the form id
      Returns:
      the list of closing days of the form
    • findByIdFormAndDateRange

      public static List<ClosingDay> findByIdFormAndDateRange(int nIdForm, LocalDate startingDate, LocalDate endingDate)
      Returns a list of closing days of the form on a period
      Parameters:
      nIdForm - the form Id
      startingDate - the starting date
      endingDate - the ending date
      Returns:
      a list of closing days matches the criteria
    • findByIdFormAndDateOfCLosingDay

      public static ClosingDay findByIdFormAndDateOfCLosingDay(int nIdForm, LocalDate dateOfClosingDay)
      Returns the closing day
      Parameters:
      nIdForm - the Form Id
      dateOfClosingDay - the date of the closing day
      Returns:
      an instance of the ClosingDay if it exists, null otherwise