Class FormMessageHome
java.lang.Object
fr.paris.lutece.plugins.forms.business.FormMessageHome
This class provides instances management methods (create, find, ...) for FormResponseHome objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormMessagecreate(FormMessage formMessage) Create an instance of the formMessage classstatic FormMessagefindByForm(int nIdForm) Returns an instance of a formMessage for the given form idstatic FormMessagefindByPrimaryKey(int nKey) Returns an instance of a formMessage whose identifier is specified in parameterstatic voidremove(int nKey) Remove the formMessage whose identifier is specified in parameterstatic voidremoveByForm(int nIdForm) Remove the formMessage whose form identifier is specified in parameterstatic FormMessageupdate(FormMessage formMessage) Update of the formMessage which is specified in parameter
-
Method Details
-
create
Create an instance of the formMessage class- Parameters:
formMessage- The instance of the FormMessage which contains the informations to store- Returns:
- The instance of formMessage which has been created with its primary key.
-
update
Update of the formMessage which is specified in parameter- Parameters:
formMessage- The instance of the FormMessage which contains the data to store- Returns:
- The instance of the formMessage which has been updated
-
remove
public static void remove(int nKey) Remove the formMessage whose identifier is specified in parameter- Parameters:
nKey- The formMessage Id
-
removeByForm
public static void removeByForm(int nIdForm) Remove the formMessage whose form identifier is specified in parameter- Parameters:
nIdForm- The form Id
-
findByPrimaryKey
Returns an instance of a formMessage whose identifier is specified in parameter- Parameters:
nKey- The formMessage primary key- Returns:
- an instance of FormMessage
-
findByForm
Returns an instance of a formMessage for the given form id- Parameters:
nIdForm- The form primary key- Returns:
- an instance of FormMessage
-