public final class QuizQuestionHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static QuizQuestion |
create(QuizQuestion quizQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article QuizQuestion
|
static Collection<QuizQuestion> |
findAll(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns QuizQuestion list
|
static QuizQuestion |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article QuizQuestion whose identifier is
specified in parameter
|
static Collection<Integer> |
findIdQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a list of questions for a group
|
static QuizQuestion |
findLastQuestion(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article QuizQuestion whose identifier is
specified in parameter
|
static Collection<QuizQuestion> |
findQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a list of questions for a group
|
static Collection<QuizQuestion> |
findQuestionsWithAnswer(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a list of questions that has at least one answer
|
static Collection<QuizQuestion> |
findQuestionsWithAnswerByIdGroup(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
|
static void |
remove(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the QuizQuestion instance whose identifier is specified in
parameter
|
static void |
removeQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the QuizQuestions instance by Group
|
static void |
removeQuestionsByQuiz(int nQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the QuizQuestion instance whose identifier is specified in
parameter
|
static QuizQuestion |
update(QuizQuestion question,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates of the QuizQuestion instance specified in parameter
|
public static QuizQuestion create(QuizQuestion quizQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
quizQuestion - An instance of the QuizQuestion which contains the
informations to storeplugin - the pluginpublic static QuizQuestion update(QuizQuestion question, fr.paris.lutece.portal.service.plugin.Plugin plugin)
question - An instance of the QuizQuestion which contains the
informations to storeplugin - the pluginpublic static void remove(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuestion - The identifier of the article QuizQuestion to delete
in the databaseplugin - the pluginpublic static void removeQuestionsByQuiz(int nQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nQuiz - The identifier of the article QuizQuestion to delete in the
databaseplugin - the pluginpublic static QuizQuestion findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - The primary key of the article to find in the databaseplugin - the pluginpublic static Collection<QuizQuestion> findAll(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the pluginnIdQuiz - The identifier of the article Quiz to find it in the
databasepublic static Collection<Integer> findIdQuestionsByGroup(int nIdQuiz, int nIdGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The Quiz idnIdGroup - The group idplugin - The pluginpublic static Collection<QuizQuestion> findQuestionsByGroup(int nIdQuiz, int nIdGroup, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The Quiz idnIdGroup - The group idplugin - The pluginpublic static void removeQuestionsByGroup(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 the groupplugin - the pluginpublic static QuizQuestion findLastQuestion(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the pluginpublic static Collection<QuizQuestion> findQuestionsWithAnswer(int nIdQuiz, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - the Quiz Idplugin - The pluginpublic static Collection<QuizQuestion> findQuestionsWithAnswerByIdGroup(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.