public final class QuizQuestionDAO extends Object
| Constructor and Description |
|---|
QuizQuestionDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the Quiz instance whose identifier is specified in parameter
|
void |
deleteQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the Quiz instances whose identifier is specified in parameter by
group
|
void |
deleteQuestionsByQuiz(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an instance of a question by Quiz
|
Collection<Integer> |
getVerifyQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article Quiz whose identifier is specified in
parameter
|
void |
insert(QuizQuestion quizQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation o of an article Quiz
|
QuizQuestion |
load(int nIdQuizQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article Quiz whose identifier is specified in
parameter
|
QuizQuestion |
loadLastQuestion(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the question which just created
|
Collection<QuizQuestion> |
selectQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of questions for a given group
|
Collection<QuizQuestion> |
selectQuestionsList(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article Quiz whose identifier is specified in
parameter
|
Collection<QuizQuestion> |
selectQuestionsListWithAnswer(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of questions with answers
|
Collection<QuizQuestion> |
selectQuestionsListWithAnswerByIdGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a list of questions that has at least one answer and re associated
with a given group
|
void |
store(QuizQuestion quizQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates of the Quiz instance specified in parameter
|
public void insert(QuizQuestion quizQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
quizQuestion - An if an instancenstance of the Quiz which contains
the informations to storeplugin - the pluginpublic void delete(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuestion - The identifier of the article Quiz to delete in
the databaseplugin - the pluginpublic void deleteQuestionsByQuiz(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - An instance of the Quiz which contains the informations to
storeplugin - the pluginpublic QuizQuestion load(int nIdQuizQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuizQuestion - The primary key of the article to find in the databaseplugin - the pluginpublic QuizQuestion loadLastQuestion(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the pluginpublic void store(QuizQuestion quizQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
quizQuestion - An instance of the Quiz which contains the
informations to storeplugin - the pluginpublic Collection<QuizQuestion> selectQuestionsList(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The primary key of the article to find in the databaseplugin - the pluginpublic Collection<Integer> getVerifyQuestionsByGroup(int nIdQuiz, int nIdGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The primary key of the article to find in the databasenIdGroup - The primary key of the groupplugin - the pluginpublic Collection<QuizQuestion> selectQuestionsByGroup(int nIdQuiz, int nIdGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz IDnIdGroup - The group Idplugin - The pluginpublic void deleteQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The identifier of the article Quiz to delete in the
databasenIdGroup - the id of a groupplugin - the pluginpublic Collection<QuizQuestion> selectQuestionsListWithAnswer(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz Idplugin - The pluginpublic Collection<QuizQuestion> selectQuestionsListWithAnswerByIdGroup(int nIdQuiz, int nIdGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - the Quiz IdnIdGroup - The id of the groupplugin - The pluginCopyright © 2019 City of Paris. All rights reserved.