public final class QuestionDAO extends Object implements IQuestionDAO
| Constructor and Description |
|---|
QuestionDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Question question,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Question |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
List<Integer> |
selectIdQuestionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the question objects and returns them as a list
|
List<Question> |
selectQuestionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the question objects and returns them as a list
|
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
|
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
|
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
|
void |
store(Question question,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(Question question, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IQuestionDAOquestion - instance of the Question object to insertplugin - the Pluginpublic Question load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IQuestionDAOnKey - The identifier of the questionplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IQuestionDAOnKey - The identifier of the Question to deleteplugin - the Pluginpublic void store(Question question, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IQuestionDAOquestion - the reference of the Questionplugin - the Pluginpublic List<Question> selectQuestionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectQuestionsList in interface IQuestionDAOplugin - the Pluginpublic List<Question> selectQuestionsListByStep(int nIdStep, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectQuestionsListByStep in interface IQuestionDAOnIdStep - the step idplugin - the Pluginpublic List<Integer> selectIdQuestionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdQuestionsList in interface IQuestionDAOplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectQuestionsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectQuestionsReferenceList in interface IQuestionDAOplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectQuestionsReferenceListByForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectQuestionsReferenceListByForm in interface IQuestionDAOnIdForm - the form idplugin - the PluginCopyright © 2018 City of Paris. All rights reserved.