public final class TemplateQuestionDAO extends Object implements ITemplateQuestionDAO
Constructor and Description |
---|
TemplateQuestionDAO() |
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(fr.paris.lutece.plugins.forms.business.Question question,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
fr.paris.lutece.plugins.forms.business.Question |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
List<fr.paris.lutece.plugins.forms.business.Question> |
selectQuestionsListByTemplate(int nIdTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the question objects by step and returns them as a list
|
void |
store(fr.paris.lutece.plugins.forms.business.Question question,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(fr.paris.lutece.plugins.forms.business.Question question, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ITemplateQuestionDAO
question
- instance of the Question object to insertplugin
- the Pluginpublic fr.paris.lutece.plugins.forms.business.Question load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ITemplateQuestionDAO
nKey
- The identifier of the questionplugin
- the Pluginpublic void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ITemplateQuestionDAO
nKey
- The identifier of the Question to deleteplugin
- the Pluginpublic void store(fr.paris.lutece.plugins.forms.business.Question question, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ITemplateQuestionDAO
question
- the reference of the Questionplugin
- the Pluginpublic List<fr.paris.lutece.plugins.forms.business.Question> selectQuestionsListByTemplate(int nIdTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ITemplateQuestionDAO
selectQuestionsListByTemplate
in interface ITemplateQuestionDAO
nIdTemplate
- the template idplugin
- the PluginCopyright © 2022 City of Paris. All rights reserved.