Class QuestionDAO
java.lang.Object
fr.paris.lutece.plugins.forms.business.QuestionDAO
- All Implemented Interfaces:
IQuestionDAO
This class provides Data Access methods for Question objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadByCodeAndEntry(String strCode, int idEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadMultiple(List<Integer> keyList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectIdQuestionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the question objects and returns them as a listselectQuestionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the question objects and returns them as a listselectQuestionsListByFormId(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the question objects by form id and returns them as a listselectQuestionsListByFormIdUncomplete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the question objects related to multiview by form id and returns them as a listselectQuestionsListByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the question objects by step and returns them as a listselectQuestionsListUncomplete(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the question objects related to multiview and returns them as a listfr.paris.lutece.util.ReferenceListselectQuestionsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the question objects and returns them as a referenceListfr.paris.lutece.util.ReferenceListselectQuestionsReferenceListByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the question objects for the given form and returns them as a referenceListvoidUpdate the record in the table
-
Constructor Details
-
QuestionDAO
public QuestionDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIQuestionDAO- Parameters:
question- instance of the Question object to insertplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIQuestionDAO- Parameters:
nKey- The identifier of the questionplugin- the Plugin- Returns:
- The instance of the question
-
loadByCode
public List<Question> loadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table- Specified by:
loadByCodein interfaceIQuestionDAO- Parameters:
strCode- The code of the questionplugin- the Plugin- Returns:
- The instance of the question
-
loadByCodeAndEntry
public Question loadByCodeAndEntry(String strCode, int idEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IQuestionDAOLoad the data from the table- Specified by:
loadByCodeAndEntryin interfaceIQuestionDAO- Parameters:
strCode- The code of the questionplugin- the Plugin- Returns:
- The instance of the question
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIQuestionDAO- Parameters:
nKey- The identifier of the Question to deleteplugin- the Plugin
-
store
Update the record in the table- Specified by:
storein interfaceIQuestionDAO- Parameters:
question- the reference of the Questionplugin- the Plugin
-
selectQuestionsList
Load the data of all the question objects and returns them as a list- Specified by:
selectQuestionsListin interfaceIQuestionDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the question objects
-
selectQuestionsListByStep
public List<Question> selectQuestionsListByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the question objects by step and returns them as a list- Specified by:
selectQuestionsListByStepin interfaceIQuestionDAO- Parameters:
nIdStep- the step idplugin- the Plugin- Returns:
- The list which contains the data of all the question objects
-
selectIdQuestionsList
Load the id of all the question objects and returns them as a list- Specified by:
selectIdQuestionsListin interfaceIQuestionDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the question objects
-
selectQuestionsListUncomplete
public List<Question> selectQuestionsListUncomplete(fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IQuestionDAOLoad the data of the question objects related to multiview and returns them as a list- Specified by:
selectQuestionsListUncompletein interfaceIQuestionDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the uncomplete data of the question objects related to multiview
-
selectQuestionsReferenceList
public fr.paris.lutece.util.ReferenceList selectQuestionsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the question objects and returns them as a referenceList- Specified by:
selectQuestionsReferenceListin interfaceIQuestionDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the question objects
-
selectQuestionsListByFormId
public List<Question> selectQuestionsListByFormId(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IQuestionDAOLoad the data of all the question objects by form id and returns them as a list- Specified by:
selectQuestionsListByFormIdin interfaceIQuestionDAO- Parameters:
nIdForm- The id of the formplugin- The plugin- Returns:
- The list which contains the data of all the question objects by given form id
-
selectQuestionsListByFormIdUncomplete
public List<Question> selectQuestionsListByFormIdUncomplete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IQuestionDAOLoad the data of the question objects related to multiview by form id and returns them as a list- Specified by:
selectQuestionsListByFormIdUncompletein interfaceIQuestionDAO- Parameters:
nIdForm- The id of the formplugin- The plugin- Returns:
- The list which contains the data of the question objects related to multiview by given form id
-
selectQuestionsReferenceListByForm
public fr.paris.lutece.util.ReferenceList selectQuestionsReferenceListByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the question objects for the given form and returns them as a referenceList- Specified by:
selectQuestionsReferenceListByFormin interfaceIQuestionDAO- Parameters:
nIdForm- the form idplugin- the Plugin- Returns:
- The referenceList which contains the data of all the question objects
-
loadMultiple
public List<Question> loadMultiple(List<Integer> keyList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IQuestionDAOLoad the data from the table- Specified by:
loadMultiplein interfaceIQuestionDAO- Parameters:
keyList- The identifiers of the questionsplugin- the Plugin- Returns:
- The list of questions
-