fr.paris.lutece.plugins.quiz.business
Interface IQuestionGroupDAO

All Known Implementing Classes:
QuestionGroupDAO

public interface IQuestionGroupDAO

IQuestionGroupDAO Interface


Method Summary
 void changePositionDown(int nIdQuiz, QuestionGroup group, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Move down a group
 void changePositionUp(int nIdQuiz, QuestionGroup group, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Move up a group
 void delete(int nIdQuiz, int nIdGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteByQuiz(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete for a quiz
 void insert(int nIdQuiz, QuestionGroup group, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 QuestionGroup load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 List<QuestionGroup> selectQuestionGroupsList(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the group objects and returns them as a List
 fr.paris.lutece.util.ReferenceList selectQuestionGroupsReferenceList(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a list of groups
 void store(QuestionGroup group, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

void insert(int nIdQuiz,
            QuestionGroup group,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
nIdQuiz - The quiz ID
group - instance of the QuestionGroup object to inssert
plugin - the Plugin

store

void store(QuestionGroup group,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
group - the reference of the QuestionGroup
plugin - the Plugin

delete

void delete(int nIdQuiz,
            int nIdGroup,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdQuiz - The Quiz ID
nIdGroup - int identifier of the QuestionGroup to delete
plugin - the Plugin

load

QuestionGroup load(int nKey,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
nKey - The identifier of the group
plugin - the Plugin
Returns:
The instance of the group

selectQuestionGroupsList

List<QuestionGroup> selectQuestionGroupsList(int nIdQuiz,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the group objects and returns them as a List

Parameters:
nIdQuiz - The Quiz Id
plugin - the Plugin
Returns:
The List which contains the data of all the group objects

selectQuestionGroupsReferenceList

fr.paris.lutece.util.ReferenceList selectQuestionGroupsReferenceList(int nIdQuiz,
                                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of groups

Parameters:
nIdQuiz - The Quiz ID
plugin - The plugin
Returns:
The list

deleteByQuiz

void deleteByQuiz(int nIdQuiz,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete for a quiz

Parameters:
nIdQuiz - The Quiz ID
plugin - The plugin

changePositionUp

void changePositionUp(int nIdQuiz,
                      QuestionGroup group,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Move up a group

Parameters:
nIdQuiz - The quiz Id
group - The group
plugin - The plugin

changePositionDown

void changePositionDown(int nIdQuiz,
                        QuestionGroup group,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Move down a group

Parameters:
nIdQuiz - The quiz Id
group - The group
plugin - The plugin


Copyright © 2013 Mairie de Paris. All Rights Reserved.