Class FormQuestionResponseHome
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.business.FormQuestionResponseHome
-
public final class FormQuestionResponseHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for FormDisplay objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 java.util.List<FormQuestionResponse>findFormQuestionResponseByQuestion(int nIdQuestion)Retrieves the list of form question responses associated to the specified question.static java.util.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 java.util.List<FormQuestionResponse>findQuestionsByStepAndFormResponse(int nIdFormResponse, int nIdStep)Load the data of all the formQuestionResponse objects and returns them as a liststatic java.util.List<FormQuestionResponse>getFormQuestionResponseList()Load the data of all the formQuestionResponse objects and returns them as a liststatic java.util.List<FormQuestionResponse>getFormQuestionResponseListByFormResponse(int nIdFormResponse)Load the data of all the formQuestionResponse objects for saving and returns them as a liststatic java.util.List<FormQuestionResponse>getFormQuestionResponseListByFormResponseList(java.util.List<java.lang.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 java.util.List<FormQuestionResponse>selectFormQuestionResponseListByListFormResponseStep(java.util.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 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 java.util.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 java.util.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 java.util.List<FormQuestionResponse> selectFormQuestionResponseListByListFormResponseStep(java.util.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 java.util.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 java.util.List<FormQuestionResponse> getFormQuestionResponseListByFormResponseList(java.util.List<java.lang.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 java.util.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 java.util.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
-
-