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

@ApplicationScoped public class FormDAO extends Object implements IFormDAO
This class provides Data Access methods for Form objects
Author:
Laurent Payen
  • 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
    findActiveAndDisplayedOnPortletForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get all the forms that are active on displayed on portlet
    findActiveForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get all the forms that are active
    findAllForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get all the forms
    findByTitle(String strTitle, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get all the forms with a given title
    void
    insert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table
    select(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectByCategory(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    void
    update(Form form, 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

    • FormDAO

      public FormDAO()
  • Method Details

    • insert

      public void insert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFormDAO
      Insert a new record in the table
      Specified by:
      insert in interface IFormDAO
      Parameters:
      form - instance of the form object to insert
      plugin - the plugin
    • update

      public void update(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFormDAO
      Update the record in the table
      Specified by:
      update in interface IFormDAO
      Parameters:
      form - the reference of the form
      plugin - the plugin
    • delete

      public void delete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFormDAO
      Delete a record from the table
      Specified by:
      delete in interface IFormDAO
      plugin - the plugin
    • select

      public Form select(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFormDAO
      Load the data from the table
      Specified by:
      select in interface IFormDAO
      Parameters:
      nIdForm - the identifier of the form
      plugin - the plugin
      Returns:
      the instance of the Form
    • selectByCategory

      public List<Form> selectByCategory(int nIdCategory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFormDAO
      Load the data from the table
      Specified by:
      selectByCategory in interface IFormDAO
      Parameters:
      nIdCategory - the identifier of the category
      plugin - the plugin
      Returns:
      the instance of the Form
    • findActiveForms

      public List<Form> findActiveForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFormDAO
      Get all the forms that are active
      Specified by:
      findActiveForms in interface IFormDAO
      Parameters:
      plugin - the plugin
      Returns:
      all the active forms
    • findActiveAndDisplayedOnPortletForms

      public List<Form> findActiveAndDisplayedOnPortletForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFormDAO
      Get all the forms that are active on displayed on portlet
      Specified by:
      findActiveAndDisplayedOnPortletForms in interface IFormDAO
      Parameters:
      plugin - the plugin
      Returns:
      all the active and displayed on portlet forms
    • findByTitle

      public List<Form> findByTitle(String strTitle, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFormDAO
      Get all the forms with a given title
      Specified by:
      findByTitle in interface IFormDAO
      Parameters:
      strTitle - the Title of the form
      plugin - the plugin
      Returns:
      all the forms with this title
    • findAllForms

      public List<Form> findAllForms(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFormDAO
      Get all the forms
      Specified by:
      findAllForms in interface IFormDAO
      Parameters:
      plugin - the plugin
      Returns:
      all the forms