Class TemplateQuestionDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.modules.template.business.TemplateQuestionDAO
-
- All Implemented Interfaces:
ITemplateQuestionDAO
public final class TemplateQuestionDAO extends Object implements ITemplateQuestionDAO
This class provides Data Access methods for Question objects
-
-
Constructor Summary
Constructors Constructor Description TemplateQuestionDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(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.Questionload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableList<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 listvoidstore(fr.paris.lutece.plugins.forms.business.Question question, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public 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.- Specified by:
insertin interfaceITemplateQuestionDAO- Parameters:
question- instance of the Question object to insertplugin- the Plugin
-
load
public fr.paris.lutece.plugins.forms.business.Question load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the table- Specified by:
loadin interfaceITemplateQuestionDAO- Parameters:
nKey- The identifier 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 interfaceITemplateQuestionDAO- Parameters:
nKey- The identifier of the Question to deleteplugin- the Plugin
-
store
public void store(fr.paris.lutece.plugins.forms.business.Question question, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table- Specified by:
storein interfaceITemplateQuestionDAO- Parameters:
question- the reference of the Questionplugin- the Plugin
-
selectQuestionsListByTemplate
public List<fr.paris.lutece.plugins.forms.business.Question> selectQuestionsListByTemplate(int nIdTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITemplateQuestionDAOLoad the data of all the question objects by step and returns them as a list- Specified by:
selectQuestionsListByTemplatein interfaceITemplateQuestionDAO- Parameters:
nIdTemplate- the template idplugin- the Plugin- Returns:
- The list which contains the data of all the question objects
-
-