Class FormHome
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.form.FormHome
-
public final class FormHome extends Object
This 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 List<Form>findActiveAndDisplayedOnPortletForms()Returns all the active and displayd on portlet formsstatic List<Form>findActiveForms()Returns all the active formsstatic List<Form>findAllForms()Returns all the formsstatic 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 List<Form>findByTitle(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 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 List<Form> findByTitle(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 List<Form> findActiveForms()
Returns all the active forms- Returns:
- a list of all the active forms
-
findActiveAndDisplayedOnPortletForms
public static List<Form> findActiveAndDisplayedOnPortletForms()
Returns all the active and displayd on portlet forms- Returns:
- a list of all the active and displayed on portlet forms
-
-