Class FormMessageDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.FormMessageDAO
-
- All Implemented Interfaces:
IFormMessageDAO
public final class FormMessageDAO extends java.lang.Object implements IFormMessageDAO
This class provides Data Access methods for FormMessage objects
-
-
Constructor Summary
Constructors Constructor Description FormMessageDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(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.FormMessageload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableFormMessageselectByForm(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
-
-
-
Method Detail
-
insert
public void insert(FormMessage formMessage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIFormMessageDAO- Parameters:
formMessage- instance of the FormMessage object to insertplugin- the Plugin
-
load
public FormMessage load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
public void store(FormMessage formMessage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIFormMessageDAO- Parameters:
formMessage- the reference of the FormMessageplugin- the Plugin
-
selectByForm
public FormMessage selectByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
-
-