Class FormQuestionResponseHome
java.lang.Object
fr.paris.lutece.plugins.forms.business.FormQuestionResponseHome
This class provides instances management methods (create, find, ...) for FormDisplay objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormQuestionResponsecreate(FormQuestionResponse formQuestionResponse) Create an instance of the formQuestionResponse classstatic FormQuestionResponsefindByPrimaryKey(int nKey) Returns an instance of a formQuestionResponse whose identifier is specified in parameterstatic List<FormQuestionResponse>findFormQuestionResponseByQuestion(int nIdQuestion) Retrieves the list of form question responses associated to the specified question.static List<FormQuestionResponse>findFormQuestionResponseByResponseQuestion(int nIdFormResponse, int nIdQuestion) Retrieves the form question responses associated to the given form response for the specified question.static intfindMaxIterationNumber(int nIdQuestion) Find the maximum iteration number for a given questionstatic List<FormQuestionResponse>findQuestionsByStepAndFormResponse(int nIdFormResponse, int nIdStep) Load the data of all the formQuestionResponse objects and returns them as a liststatic List<FormQuestionResponse>Load the data of all the formQuestionResponse objects and returns them as a liststatic List<FormQuestionResponse>getFormQuestionResponseListByFormResponse(int nIdFormResponse) Load the data of all the formQuestionResponse objects for saving and returns them as a liststatic List<FormQuestionResponse>getFormQuestionResponseListByFormResponseList(List<Integer> listIdFormResponse) Load the data of all the formQuestionResponse objects for saving and returns them as a liststatic voidremove(FormQuestionResponse formQuestionResponse) Remove the formQuestionResponse whose identifier is specified in parameterstatic voidremoveByQuestion(int nIdQuestion) Remove the formQuestionResponse related to a Question whose identifier is specified in parameterstatic FormQuestionResponseselectFormQuestionResponseByEntryResponse(fr.paris.lutece.plugins.genericattributes.business.Response response) Retrieves the form question responses associated to the given Entry Response.static List<FormQuestionResponse>selectFormQuestionResponseListByListFormResponseStep(List<FormResponseStep> listFormResponseStep) Load the data of all the formQuestionResponse objects and returns them as a liststatic FormQuestionResponseupdate(FormQuestionResponse formQuestionResponse) Update of the formQuestionResponse which is specified in parameter
-
Method Details
-
create
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
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
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
Returns an instance of a formQuestionResponse whose identifier is specified in parameter- Parameters:
nKey- The formQuestionResponse primary key- Returns:
- an instance of 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 FormResponsenIdStep- 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 FormResponsenIdStep- 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
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 FormResponsenIdQuestion- 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
-