|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.quiz.business.QuizQuestionHome
public final class QuizQuestionHome
This class provides instances management methods (create, find, ...) for QuizQuestion objects
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 plugin
public 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 plugin
public 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 plugin
public 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 plugin
public 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 plugin
public 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
database
public static Collection<Integer> findIdQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The Quiz idnIdGroup - The group idplugin - The plugin
public static Collection<QuizQuestion> findQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The Quiz idnIdGroup - The group idplugin - The plugin
public 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 plugin
public static Collection<QuizQuestion> findQuestionsWithAnswer(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - the Quiz Idplugin - The plugin
public 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 plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||