Class FormResponseDAO

    • 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 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 List<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 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 List<FormResponse> selectFormResponseByUser​(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 List<FormResponse> selectFormResponseByAdmin​(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 List<FormResponse> selectAllCompletedFormResponseByUser​(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 List<FormResponse> selectFormResponseByRole​(List<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 List<FormResponse> selectFormResponseByPrimaryKeyList​(List<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