Class FormMessageDAO
java.lang.Object
fr.paris.lutece.plugins.forms.business.FormMessageDAO
- All Implemented Interfaces:
IFormMessageDAO
This class provides Data Access methods for FormMessage objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table for given formvoidinsert(FormMessage formMessage, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data for the given id_formvoidstore(FormMessage formMessage, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
FormMessageDAO
public FormMessageDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIFormMessageDAO- Parameters:
formMessage- instance of the FormMessage object to insertplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIFormMessageDAO- Parameters:
nKey- The identifier of the FormMessageplugin- the Plugin- Returns:
- The instance of the FormMessage
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIFormMessageDAO- Parameters:
nKey- The identifier of the FormMessage to deleteplugin- the Plugin
-
deleteByForm
public void deleteByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table for given form- Specified by:
deleteByFormin interfaceIFormMessageDAO- Parameters:
nIdForm- The form identifier of the FormMessage to deleteplugin- the Plugin
-
store
Update the record in the table- Specified by:
storein interfaceIFormMessageDAO- Parameters:
formMessage- the reference of the FormMessageplugin- the Plugin
-
selectByForm
Load the data for the given id_form- Specified by:
selectByFormin interfaceIFormMessageDAO- Parameters:
nIdForm- The identifier of the formplugin- the Plugin- Returns:
- The instance of the FormMessage
-