Interface IFormResponseDAO

  • All Known Implementing Classes:
    FormResponseDAO

    public interface IFormResponseDAO
    IFormResponseDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract 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
      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
    • Method Detail

      • insert

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

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

        void delete​(int nKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nKey - The identifier of the FormResponse to delete
        plugin - the Plugin
      • load

        FormResponse load​(int nKey,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the FormResponse
        plugin - the Plugin
        Returns:
        The instance of the FormResponse
      • selectFormResponseList

        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
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectAllFormResponsesId

        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
        Parameters:
        plugin -
        Returns:
        the list of the primary keys of all the form responses
      • selectFormResponseListUncompleteByIdForm

        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
        Parameters:
        nIdForm - the id of the form
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectFormResponseByUser

        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
        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

        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
        Parameters:
        strGuid - the given admin id
        nIdForm - the form id key
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectAllCompletedFormResponseByUser

        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
        Parameters:
        strGuid - the given guid
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectFormResponseByRole

        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
        Parameters:
        listRole - the given role FO
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • selectFormResponseByPrimaryKeyList

        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
        Parameters:
        listIdFormResponse - the list of formResponses identifiers
        plugin - the Plugin
        Returns:
        The list which contains the data of all the FormResponse objects
      • deleteByForm

        void deleteByForm​(int nIdForm,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove all the formResponse linked to a given Form
        Parameters:
        nIdForm - The form Identifier
        plugin - the Plugin