Interface IFormQuestionResponseDAO

All Known Implementing Classes:
FormQuestionResponseDAO

public interface IFormQuestionResponseDAO
IFormQuestionResponseDAO Interface
  • Method Details

    • insert

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

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

      void delete(FormQuestionResponse formQuestionResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      formQuestionResponse - The formQuestionResponse to delete
      plugin - the Plugin
    • load

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

      List<FormQuestionResponse> selectFormQuestionResponseList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormQuestionResponse objects and returns them as a list
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormQuestionResponse objects
    • selectFormQuestionResponseListByStepAndFormResponse

      List<FormQuestionResponse> selectFormQuestionResponseListByStepAndFormResponse(int nIdFormResponse, int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormQuestionResponse objects and returns them as a list
      Parameters:
      nIdFormResponse - The identifier of the FormResponse
      nIdStep - The identifier of the Step
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormQuestionResponse objects
    • selectFormQuestionResponseListByListFormResponseStep

      List<FormQuestionResponse> selectFormQuestionResponseListByListFormResponseStep(List<FormResponseStep> listFormResponseStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormQuestionResponse objects and returns them as a list
      Parameters:
      nIdFormResponse - The identifier of the FormResponse
      nIdStep - The identifier of the Step
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormQuestionResponse objects
    • selectFormQuestionResponseListByFormResponse

      List<FormQuestionResponse> selectFormQuestionResponseListByFormResponse(int nIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormQuestionResponse objects for saving and returns them as a list
      Parameters:
      nIdFormResponse - The identifier of the FormResponse
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormQuestionResponse objects
    • selectFormQuestionResponseListByFormResponseIdList

      List<FormQuestionResponse> selectFormQuestionResponseListByFormResponseIdList(List<Integer> listIdFormResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the FormQuestionResponse objects and returns them as a list
      Parameters:
      listIdFormResponse - The identifier of the FormResponse
      plugin - the Plugin
      Returns:
      The list which contains the data of all the FormQuestionResponse objects
    • selectFormQuestionResponseByQuestion

      List<FormQuestionResponse> selectFormQuestionResponseByQuestion(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Retrieves the form question responses associated to the specified question.
      Parameters:
      nIdQuestion - The identifier of the Question
      plugin - The Plugin to use to execute the query
      Returns:
      the list of form question responses
    • selectFormQuestionResponseByResponseForQuestion

      List<FormQuestionResponse> selectFormQuestionResponseByResponseForQuestion(int nIdFormResponse, int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Retrieves the form question responses associated to the given form response for the specified question.
      Parameters:
      nIdFormResponse - The identifier of the FormResponse
      nIdQuestion - The identifier of the Question
      plugin - The Plugin to use to execute the query
      Returns:
      the found form question responses
    • selectFormQuestionResponseByEntryResponse

      FormQuestionResponse selectFormQuestionResponseByEntryResponse(fr.paris.lutece.plugins.genericattributes.business.Response response, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Retrieves the form question responses associated to the given Entry Response.
      Parameters:
      response -
      plugin -
      Returns:
    • completeListWithEntryResponses

      void completeListWithEntryResponses(List<FormQuestionResponse> formQuestionResponsesList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Populates the FormQuestionResponse of the list with their Response values.
      Parameters:
      formQuestionResponsesList -
      plugin -
    • findMaxIterationNumberByQuestion

      int findMaxIterationNumberByQuestion(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find the maximum iteration number for a given question
      Parameters:
      nIdQuestion - The identifier of the Question
      plugin - The Plugin to use to execute the query
      Returns:
      the maximum iteration number