Class FormDAO

  • All Implemented Interfaces:
    IFormDAO

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

      Constructors 
      Constructor Description
      FormDAO()  
    • 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 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