Class FormDAO

  • All Implemented Interfaces:
    IFormDAO

    public final class FormDAO
    extends java.lang.Object
    implements IFormDAO
    This class provides Data Access methods for Form objects
    Author:
    Laurent Payen
    • Constructor Summary

      Constructors 
      Constructor Description
      FormDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      java.util.List<Form> findActiveAndDisplayedOnPortletForms​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get all the forms that are active on displayed on portlet
      java.util.List<Form> findActiveForms​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get all the forms that are active
      java.util.List<Form> findAllForms​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get all the forms
      java.util.List<Form> findByTitle​(java.lang.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
      Form select​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<Form> 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 Detail

      • FormDAO

        public FormDAO()
    • Method Detail

      • 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 java.util.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 java.util.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 java.util.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 java.util.List<Form> findByTitle​(java.lang.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 java.util.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