Class QuestionHome
java.lang.Object
fr.paris.lutece.plugins.forms.business.QuestionHome
This class provides instances management methods (create, find, ...) for Question objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic QuestionCreate an instance of the question classfindByCode(String strCode) Returns all questions with the given technical code.static QuestionfindByCodeAndEntry(String strCode, int entryId) Returns all questions with the given technical code and entry.static QuestionfindByPrimaryKey(int nKey) Returns an instance of a question whose identifier is specified in parameterfindByPrimaryKeyList(List<Integer> keyList) Returns an instance of a question whose identifier is specified in parameterLoad the id of all the question objects and returns them as a listgetListQuestionByIdForm(int nIdForm) Load the data of all the question objects for given form id and returns them as a listgetListQuestionByIdFormUncomplete(int nIdForm) Load the data of the question objects related to multiview for given form id and returns them as a listgetQuestionListByIdFormInQuestionOrder(int nIdForm) Load the data of question object for the given form and returns them in display orderLoad the data of all the question objects and returns them as a listgetQuestionsListByStep(int nIdStep) Load the data of all the question objects and returns them as a listLoad the data of the question objects related to multiview and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the question objects and returns them as a referenceListstatic fr.paris.lutece.util.ReferenceListgetQuestionsReferenceListByForm(int nIdForm) Load the data of all the question objects for the given form and returns them as a referenceListstatic voidremove(int nKey) Remove the question whose identifier is specified in parameter.static QuestionUpdate of the question which is specified in parameter
-
Method Details
-
create
Create an instance of the question class- Parameters:
question- The instance of the Question which contains the informations to store- Returns:
- The instance of question which has been created with its primary key.
-
update
Update of the question which is specified in parameter- Parameters:
question- The instance of the Question which contains the data to store- Returns:
- The instance of the question which has been updated
-
remove
public static void remove(int nKey) Remove the question whose identifier is specified in parameter. The associated Entry and EntryResponses will be also deleted- Parameters:
nKey- The question Id
-
findByPrimaryKey
Returns an instance of a question whose identifier is specified in parameter- Parameters:
nKey- The question primary key- Returns:
- an instance of Question
-
findByCode
Returns all questions with the given technical code.- Parameters:
strCode- The question code- Returns:
- an instance of Question
-
findByCodeAndEntry
Returns all questions with the given technical code and entry.- Parameters:
strCode- The question code- Returns:
- an instance of Question
-
findByPrimaryKeyList
Returns an instance of a question whose identifier is specified in parameter- Parameters:
keyList- The questions primary keys- Returns:
- a list of Questions
-
getQuestionsList
Load the data of all the question objects and returns them as a list- Returns:
- the list which contains the data of all the question objects
-
getQuestionsListUncomplete
Load the data of the question objects related to multiview and returns them as a list- Returns:
- the list which contains the data of the question objects related to multiview
-
getQuestionsListByStep
Load the data of all the question objects and returns them as a list- Parameters:
nIdStep- The step primary key- Returns:
- the list which contains the data of all the question objects
-
getListQuestionByIdForm
Load the data of all the question objects for given form id and returns them as a list- Parameters:
nIdForm- The id of the form- Returns:
- the list of all the question objects for the given form id
-
getListQuestionByIdFormUncomplete
Load the data of the question objects related to multiview for given form id and returns them as a list- Parameters:
nIdForm- The id of the form- Returns:
- the list of the question objects related to multiview for the given form id
-
getIdQuestionsList
Load the id of all the question objects and returns them as a list- Returns:
- the list which contains the id of all the question objects
-
getQuestionsReferenceList
public static fr.paris.lutece.util.ReferenceList getQuestionsReferenceList()Load the data of all the question objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the question objects
-
getQuestionsReferenceListByForm
public static fr.paris.lutece.util.ReferenceList getQuestionsReferenceListByForm(int nIdForm) Load the data of all the question objects for the given form and returns them as a referenceList- Parameters:
nIdForm- The form primary key- Returns:
- the referenceList which contains the data of all the question objects
-
getQuestionListByIdFormInQuestionOrder
Load the data of question object for the given form and returns them in display order- Parameters:
nIdForm- The form primary key- Returns:
- the question list sorted in display order
-