Class FormMessageHome
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.FormMessageHome
-
public final class FormMessageHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for FormResponseHome objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
create
public static FormMessage create(FormMessage formMessage)
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
public static FormMessage update(FormMessage formMessage)
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
public static FormMessage findByPrimaryKey(int nKey)
Returns an instance of a formMessage whose identifier is specified in parameter- Parameters:
nKey- The formMessage primary key- Returns:
- an instance of FormMessage
-
findByForm
public static FormMessage findByForm(int nIdForm)
Returns an instance of a formMessage for the given form id- Parameters:
nIdForm- The form primary key- Returns:
- an instance of FormMessage
-
-