|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.quiz.business.QuizQuestionDAO
public final class QuizQuestionDAO
This class provides Data Access methods for QuizQuestion objects
| Constructor Summary | |
|---|---|
QuizQuestionDAO()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QuizQuestionDAO()
| Method Detail |
|---|
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 plugin
public 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 plugin
public 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 plugin
public 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 plugin
public QuizQuestion loadLastQuestion(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
public 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 plugin
public 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 plugin
public 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 plugin
public Collection<QuizQuestion> selectQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz IDnIdGroup - The group Idplugin - The plugin
public 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 plugin
public Collection<QuizQuestion> selectQuestionsListWithAnswer(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz Idplugin - The plugin
public 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 plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||