Class ClosingDayHome
- 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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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 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
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 IdstartingDate- the starting dateendingDate- 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 IddateOfClosingDay- the date of the closing day- Returns:
- an instance of the ClosingDay if it exists, null otherwise
-
-