Interface IFormDAO

  • All Known Implementing Classes:
    FormDAO

    public interface IFormDAO
    Form DAO Interface
    Author:
    Laurent Payen
    • Method Summary

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

      • insert

        void insert​(Form form,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table
        Parameters:
        form - instance of the form object to insert
        plugin - the plugin
      • update

        void update​(Form form,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        form - the reference of the form
        plugin - the plugin
      • delete

        void delete​(int nIdForm,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nIdFrom - identifier of the form to delete
        plugin - the plugin
      • selectByCategory

        List<Form> selectByCategory​(int nIdCategory,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nIdCategory - the identifier of the category
        plugin - the plugin
        Returns:
        the instance of the Form
      • select

        Form select​(int nIdForm,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nIdForm - the identifier of the form
        plugin - the plugin
        Returns:
        the instance of the Form
      • findActiveForms

        List<Form> findActiveForms​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get all the forms that are active
        Parameters:
        plugin - the plugin
        Returns:
        all the active forms
      • findActiveAndDisplayedOnPortletForms

        List<Form> findActiveAndDisplayedOnPortletForms​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get all the forms that are active on displayed on portlet
        Parameters:
        plugin - the plugin
        Returns:
        all the active and displayed on portlet forms
      • findByTitle

        List<Form> findByTitle​(String strTitle,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get all the forms with a given title
        Parameters:
        strTitle - the Title of the form
        plugin - the plugin
        Returns:
        all the forms with this title
      • findAllForms

        List<Form> findAllForms​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get all the forms
        Parameters:
        plugin - the plugin
        Returns:
        all the forms