Class FormMessageDAO

java.lang.Object
fr.paris.lutece.plugins.forms.business.FormMessageDAO
All Implemented Interfaces:
IFormMessageDAO

public final class FormMessageDAO extends Object implements IFormMessageDAO
This class provides Data Access methods for FormMessage objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    deleteByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table for given form
    void
    insert(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 table
    selectByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data for the given id_form
    void
    store(FormMessage formMessage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FormMessageDAO

      public FormMessageDAO()
  • Method Details

    • insert

      public void insert(FormMessage formMessage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IFormMessageDAO
      Parameters:
      formMessage - instance of the FormMessage object to insert
      plugin - the Plugin
    • load

      public FormMessage load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IFormMessageDAO
      Parameters:
      nKey - The identifier of the FormMessage
      plugin - 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:
      delete in interface IFormMessageDAO
      Parameters:
      nKey - The identifier of the FormMessage to delete
      plugin - 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:
      deleteByForm in interface IFormMessageDAO
      Parameters:
      nIdForm - The form identifier of the FormMessage to delete
      plugin - the Plugin
    • store

      public void store(FormMessage formMessage, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IFormMessageDAO
      Parameters:
      formMessage - the reference of the FormMessage
      plugin - 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:
      selectByForm in interface IFormMessageDAO
      Parameters:
      nIdForm - The identifier of the form
      plugin - the Plugin
      Returns:
      The instance of the FormMessage