Class ClosingDayHome
java.lang.Object
fr.paris.lutece.plugins.appointment.business.planning.ClosingDayHome
This class provides instances management methods for Closing Day objects
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClosingDaycreate(ClosingDay closingDay) Create an instance of the Form classstatic voiddelete(int nKey) Delete the ClosingDay whose identifier is specified in parameterstatic voiddeleteByIdForm(int nIdForm) Delete a record from the tablestatic voiddeleteByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay) Delete a record from the tablestatic List<ClosingDay>findByIdForm(int nIdForm) Returns all the Closing Days of a formstatic ClosingDayfindByIdFormAndDateOfCLosingDay(int nIdForm, LocalDate dateOfClosingDay) Returns the closing daystatic List<ClosingDay>findByIdFormAndDateRange(int nIdForm, LocalDate startingDate, LocalDate endingDate) Returns a list of closing days of the form on a periodstatic ClosingDayfindByPrimaryKey(int nKey) Returns an instance of the ClosingDay whose identifier is specified in parameterstatic ClosingDayupdate(ClosingDay closingDay) Update of the ClosingDay which is specified in parameter
-
Method Details
-
create
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
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
Delete a record from the table- Parameters:
nIdForm- the Form IddateOfCLosingDay- the date of the closing day
-
deleteByIdForm
public static void deleteByIdForm(int nIdForm) Delete a record from the table- Parameters:
nIdForm- the Form IddateOfCLosingDay- the date of the closing day
-
findByPrimaryKey
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
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 IdstartingDate- the starting dateendingDate- the ending date- Returns:
- a list of closing days matches the criteria
-
findByIdFormAndDateOfCLosingDay
Returns the closing day- Parameters:
nIdForm- the Form IddateOfClosingDay- the date of the closing day- Returns:
- an instance of the ClosingDay if it exists, null otherwise
-