Class FormQuestionResponseHome


  • public final class FormQuestionResponseHome
    extends Object
    This class provides instances management methods (create, find, ...) for FormDisplay objects
    • Method Detail

      • create

        public static FormQuestionResponse create​(FormQuestionResponse formQuestionResponse)
        Create an instance of the formQuestionResponse class
        Parameters:
        formQuestionResponse - The instance of the FormQuestionResponse which contains the informations to store
        Returns:
        The instance of formQuestionResponse which has been created with its primary key.
      • update

        public static FormQuestionResponse update​(FormQuestionResponse formQuestionResponse)
        Update of the formQuestionResponse which is specified in parameter
        Parameters:
        formQuestionResponse - The instance of the FormQuestionResponse which contains the data to store
        Returns:
        The instance of the formQuestionResponse which has been updated
      • remove

        public static void remove​(FormQuestionResponse formQuestionResponse)
        Remove the formQuestionResponse whose identifier is specified in parameter
        Parameters:
        formQuestionResponse - The formQuestionResponse to remove
      • removeByQuestion

        public static void removeByQuestion​(int nIdQuestion)
        Remove the formQuestionResponse related to a Question whose identifier is specified in parameter
        Parameters:
        nIdQuestion - The form Question Id
      • findByPrimaryKey

        public static FormQuestionResponse findByPrimaryKey​(int nKey)
        Returns an instance of a formQuestionResponse whose identifier is specified in parameter
        Parameters:
        nKey - The formQuestionResponse primary key
        Returns:
        an instance of FormQuestionResponse
      • getFormQuestionResponseList

        public static List<FormQuestionResponse> getFormQuestionResponseList()
        Load the data of all the formQuestionResponse objects and returns them as a list
        Returns:
        the list which contains the data of all the formQuestionResponse objects
      • findQuestionsByStepAndFormResponse

        public static List<FormQuestionResponse> findQuestionsByStepAndFormResponse​(int nIdFormResponse,
                                                                                    int nIdStep)
        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
        Returns:
        the list which contains the data of all the formQuestionResponse objects
      • selectFormQuestionResponseListByListFormResponseStep

        public static List<FormQuestionResponse> selectFormQuestionResponseListByListFormResponseStep​(List<FormResponseStep> listFormResponseStep)
        Load the data of all the formQuestionResponse objects and returns them as a list
        Parameters:
        listFormResponseStep - The list of FormResponse
        nIdStep - The identifier of the Step
        Returns:
        the list which contains the data of all the formQuestionResponse objects
      • getFormQuestionResponseListByFormResponse

        public static List<FormQuestionResponse> getFormQuestionResponseListByFormResponse​(int nIdFormResponse)
        Load the data of all the formQuestionResponse objects for saving and returns them as a list
        Parameters:
        nIdFormResponse - The identifier of the FormResponse
        Returns:
        the list which contains the data of all the formQuestionResponse objects
      • getFormQuestionResponseListByFormResponseList

        public static List<FormQuestionResponse> getFormQuestionResponseListByFormResponseList​(List<Integer> listIdFormResponse)
        Load the data of all the formQuestionResponse objects for saving and returns them as a list
        Parameters:
        listIdFormResponse - The list of identifiers of the FormResponses
        Returns:
        the list which contains the data of all the formQuestionResponse objects
      • findFormQuestionResponseByQuestion

        public static List<FormQuestionResponse> findFormQuestionResponseByQuestion​(int nIdQuestion)
        Retrieves the list of form question responses associated to the specified question.
        Parameters:
        nIdQuestion - The identifier of the Question
        Returns:
        the list of form question responses
      • findFormQuestionResponseByResponseQuestion

        public static List<FormQuestionResponse> findFormQuestionResponseByResponseQuestion​(int nIdFormResponse,
                                                                                            int nIdQuestion)
        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
        Returns:
        the found form question responses
      • selectFormQuestionResponseByEntryResponse

        public static FormQuestionResponse selectFormQuestionResponseByEntryResponse​(fr.paris.lutece.plugins.genericattributes.business.Response response)
        Retrieves the form question responses associated to the given Entry Response.
        Parameters:
        response -
        plugin -
        Returns:
      • findMaxIterationNumber

        public static int findMaxIterationNumber​(int nIdQuestion)
        Find the maximum iteration number for a given question
        Parameters:
        nIdQuestion - The identifier of the Question The Plugin to use to execute the query
        Returns:
        the maximum iteration number