Class FormResponseDAO

  • All Implemented Interfaces:
    IFormResponseDAO

    public final class FormResponseDAO
    extends java.lang.Object
    implements IFormResponseDAO
    This class provides Data Access methods for Form objects
    • Constructor Summary

      Constructors 
      Constructor Description
      FormResponseDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteByForm​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all the formResponse linked to a given Form
      java.util.List<FormResponse> getFormResponseByFilter​(FormResponseFilter formResponseFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the formResponse from filter
      void insert​(FormResponse formResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      FormResponse load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<FormResponse> selectAllCompletedFormResponseByUser​(java.lang.String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects and returns them as a list
      java.util.List<java.lang.Integer> selectAllFormResponsesId​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the primary keys of all the FormResponse objects and returns them as a list
      java.util.List<FormResponse> selectFormResponseByAdmin​(java.lang.String strAdmin, int nIdForm, boolean fromBackup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects and returns them as a list
      java.util.List<FormResponse> selectFormResponseByPrimaryKeyList​(java.util.List<java.lang.Integer> listIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all formResponses Objects for a given list of formResponses identifiers
      java.util.List<FormResponse> selectFormResponseByRole​(java.util.List<java.lang.String> listRole, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects by front office role and returns them as a list
      java.util.List<FormResponse> selectFormResponseByUser​(java.lang.String strGuid, int nIdForm, boolean fromBackup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects and returns them as a list
      java.util.List<FormResponse> selectFormResponseList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects and returns them as a list
      java.util.List<FormResponse> selectFormResponseListUncompleteByIdForm​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormResponse objects and returns them as a list
      void store​(FormResponse formResponse, 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

      • FormResponseDAO

        public FormResponseDAO()
    • Method Detail

      • insert

        public void insert​(FormResponse formResponse,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface IFormResponseDAO
        Parameters:
        formResponse - instance of the formResponse object to insert
        plugin - the Plugin
      • load

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

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

        public void store​(FormResponse formResponse,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IFormResponseDAO
        Parameters:
        formResponse - the reference of the FormResponse
        plugin - the Plugin
      • selectFormResponseList

        public java.util.List<FormResponse> selectFormResponseList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the FormResponse objects and returns them as a list
        Specified by:
        selectFormResponseList in interface IFormResponseDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectAllFormResponsesId

        public java.util.List<java.lang.Integer> selectAllFormResponsesId​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the primary keys of all the FormResponse objects and returns them as a list
        Specified by:
        selectAllFormResponsesId in interface IFormResponseDAO
        Returns:
        the list of the primary keys of all the form responses
      • selectFormResponseListUncompleteByIdForm

        public java.util.List<FormResponse> selectFormResponseListUncompleteByIdForm​(int nIdForm,
                                                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the FormResponse objects and returns them as a list
        Specified by:
        selectFormResponseListUncompleteByIdForm in interface IFormResponseDAO
        Parameters:
        nIdForm - the id of the form
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectFormResponseByUser

        public java.util.List<FormResponse> selectFormResponseByUser​(java.lang.String strGuid,
                                                                     int nIdForm,
                                                                     boolean fromBackup,
                                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the FormResponse objects and returns them as a list
        Specified by:
        selectFormResponseByUser in interface IFormResponseDAO
        Parameters:
        strGuid - the given guid
        nIdForm - the form id key
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectFormResponseByAdmin

        public java.util.List<FormResponse> selectFormResponseByAdmin​(java.lang.String strAdmin,
                                                                      int nIdForm,
                                                                      boolean fromBackup,
                                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the FormResponse objects and returns them as a list
        Specified by:
        selectFormResponseByAdmin in interface IFormResponseDAO
        nIdForm - the form id key
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectAllCompletedFormResponseByUser

        public java.util.List<FormResponse> selectAllCompletedFormResponseByUser​(java.lang.String strGuid,
                                                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IFormResponseDAO
        Load the data of all the FormResponse objects and returns them as a list
        Specified by:
        selectAllCompletedFormResponseByUser in interface IFormResponseDAO
        Parameters:
        strGuid - the given guid
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectFormResponseByRole

        public java.util.List<FormResponse> selectFormResponseByRole​(java.util.List<java.lang.String> listRole,
                                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IFormResponseDAO
        Load the data of all the FormResponse objects by front office role and returns them as a list
        Specified by:
        selectFormResponseByRole in interface IFormResponseDAO
        Parameters:
        listRole - the given role FO
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectFormResponseByPrimaryKeyList

        public java.util.List<FormResponse> selectFormResponseByPrimaryKeyList​(java.util.List<java.lang.Integer> listIdFormResponse,
                                                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all formResponses Objects for a given list of formResponses identifiers
        Specified by:
        selectFormResponseByPrimaryKeyList in interface IFormResponseDAO
        Parameters:
        listIdFormResponse - the list of formResponses identifiers
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • deleteByForm

        public void deleteByForm​(int nIdForm,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove all the formResponse linked to a given Form
        Specified by:
        deleteByForm in interface IFormResponseDAO
        Parameters:
        nIdForm - The form Identifier
        plugin - the Plugin
      • getFormResponseByFilter

        public java.util.List<FormResponse> getFormResponseByFilter​(FormResponseFilter formResponseFilter,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IFormResponseDAO
        Load the formResponse from filter
        Specified by:
        getFormResponseByFilter in interface IFormResponseDAO
        Parameters:
        formResponseFilter - the formResponseFilter
        plugin - the Plugin
        Returns:
        the formResponse objects