|
||||||||||
| 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)
Delete a record from the table |
void |
deleteQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete questions of a group |
void |
deleteQuestionsByQuiz(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
Collection |
getVerifyQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets a list of Questions Ids |
void |
insert(QuizQuestion quizQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
QuizQuestion |
load(int nIdQuizQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of QuizQuestion from the table |
QuizQuestion |
loadLastQuestion(fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of QuizQuestion just created |
Collection<QuizQuestion> |
selectQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of questions |
Collection<QuizQuestion> |
selectQuestionsList(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of the questions of a quiz |
Collection<QuizQuestion> |
selectQuestionsListWithAnswer(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Gets questions with answers |
void |
store(QuizQuestion quizQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table |
| 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 - The Instance of the object QuizQuestionplugin - the plugin
public void delete(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuestion - The indentifier of the object QuizQuestionplugin - the plugin
public void deleteQuestionsByQuiz(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The indentifier of the object QuizQuestionplugin - the plugin
public QuizQuestion load(int nIdQuizQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuizQuestion - The indentifier of the object QuizQuestionplugin - 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 - The instance of the QuizQuestion to updateplugin - the plugin
public Collection<QuizQuestion> selectQuestionsList(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The Quiz identifierplugin - the plugin
public Collection getVerifyQuestionsByGroup(int nIdQuiz,
int nIdGroup,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - Quiz IdnIdGroup - Group Idplugin - 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 quiz idnIdGroup - The group Idplugin - The plugin
public Collection<QuizQuestion> selectQuestionsListWithAnswer(int nIdQuiz,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuiz - The quiz idplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||