Class FormDAO

java.lang.Object
fr.paris.lutece.plugins.form.business.FormDAO
All Implemented Interfaces:
IFormDAO

public final class FormDAO extends Object implements IFormDAO
class FormDAO
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    fr.paris.lutece.util.ReferenceList
    getEnableFormList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all enable form returns them in a reference list
    int
    insert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of the Form from the table
    int
    newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Generates a new primary key
    selectFormList(FormFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the form who verify the filter and returns them in a list
    void
    store(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the form in the table

    Methods inherited from class java.lang.Object

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

    • FormDAO

      public FormDAO()
  • Method Details

    • newPrimaryKey

      public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Generates a new primary key
      Parameters:
      plugin - the plugin
      Returns:
      The new primary key
    • insert

      public int insert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IFormDAO
      Parameters:
      form - instance of the Form to insert
      plugin - the plugin
      Returns:
      the new form create
    • load

      public Form load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of the Form from the table
      Specified by:
      load in interface IFormDAO
      Parameters:
      nId - The identifier of the form
      plugin - the plugin
      Returns:
      the instance of the Form
    • delete

      public void delete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IFormDAO
      Parameters:
      nIdForm - The identifier of the form
      plugin - the plugin
    • store

      public void store(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the form in the table
      Specified by:
      store in interface IFormDAO
      Parameters:
      form - instance of the Form object to update
      plugin - the plugin
    • selectFormList

      public List<Form> selectFormList(FormFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the form who verify the filter and returns them in a list
      Specified by:
      selectFormList in interface IFormDAO
      Parameters:
      filter - the filter
      plugin - the plugin
      Returns:
      the list of form
    • getEnableFormList

      public fr.paris.lutece.util.ReferenceList getEnableFormList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all enable form returns them in a reference list
      Specified by:
      getEnableFormList in interface IFormDAO
      Parameters:
      plugin - the plugin
      Returns:
      a reference list of form