Class FormHome
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.form.FormHome
-
public final class FormHome extends java.lang.ObjectThis class provides instances management methods for Form objects- Author:
- Laurent Payen
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Formcreate(Form form)Create an instance of the Form classstatic voiddelete(int nKey)Delete the Form whose identifier is specified in parameterstatic java.util.List<Form>findActiveAndDisplayedOnPortletForms()Returns all the active and displayd on portlet formsstatic java.util.List<Form>findActiveForms()Returns all the active formsstatic java.util.List<Form>findAllForms()Returns all the formsstatic java.util.List<Form>findByCategory(int nIdCategor)Returns an instance of the Form whose identifier category is specified in parameterstatic FormfindByPrimaryKey(int nKey)Returns an instance of the Form whose identifier is specified in parameterstatic java.util.List<Form>findByTitle(java.lang.String strTitle)Returns an instance of the Form by its titlestatic Formupdate(Form form)Update of the Form which is specified in parameter
-
-
-
Method Detail
-
create
public static Form create(Form form)
Create an instance of the Form class- Parameters:
form- The instance of the Form which contains the informations to store- Returns:
- The instance of the Form which has been created with its primary key.
-
update
public static Form update(Form form)
Update of the Form which is specified in parameter- Parameters:
form- The instance of the Form which contains the data to store- Returns:
- The instance of the Form which has been updated
-
delete
public static void delete(int nKey)
Delete the Form whose identifier is specified in parameter- Parameters:
nKey- The Form Id
-
findByPrimaryKey
public static Form findByPrimaryKey(int nKey)
Returns an instance of the Form whose identifier is specified in parameter- Parameters:
nKey- The Form primary key- Returns:
- an instance of the Form
-
findByCategory
public static java.util.List<Form> findByCategory(int nIdCategor)
Returns an instance of the Form whose identifier category is specified in parameter- Parameters:
nIdCategor- The id category- Returns:
- an instance of the Form
-
findByTitle
public static java.util.List<Form> findByTitle(java.lang.String strTitle)
Returns an instance of the Form by its title- Parameters:
strTitle- The Form title- Returns:
- a list of the forms with this title
-
findActiveForms
public static java.util.List<Form> findActiveForms()
Returns all the active forms- Returns:
- a list of all the active forms
-
findActiveAndDisplayedOnPortletForms
public static java.util.List<Form> findActiveAndDisplayedOnPortletForms()
Returns all the active and displayd on portlet forms- Returns:
- a list of all the active and displayed on portlet forms
-
findAllForms
public static java.util.List<Form> findAllForms()
Returns all the forms- Returns:
- a list of all the forms
-
-