|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.quiz.business.AnswerDAO
public final class AnswerDAO
This class provides Data Access methods for Answer objects
| Constructor Summary | |
|---|---|
AnswerDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nAnswerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
deleteAnswersByQuestion(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete answers for a given question |
void |
deleteAnswersByQuiz(java.util.Collection<QuizQuestion> questionList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
insert(int nIdQuestion,
Answer answer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
Answer |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the answer from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
java.util.List<Answer> |
selectAnswersList(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the answers and returns them as a List |
void |
store(Answer answer,
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 AnswerDAO()
| Method Detail |
|---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin
public void insert(int nIdQuestion,
Answer answer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IAnswerDAOnIdQuestion - Question IDanswer - instance of the Answer object to insertplugin - The plugin
public Answer load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IAnswerDAOnId - The identifier of the answerplugin - The plugin
public void delete(int nAnswerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAnswerDAOnAnswerId - The identifier of the answerplugin - The plugin
public void store(Answer answer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IAnswerDAOanswer - The reference of the answerplugin - The plugin
public java.util.List<Answer> selectAnswersList(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAnswersList in interface IAnswerDAOnIdQuestion - the id of the questionplugin - The plugin
public void deleteAnswersByQuiz(java.util.Collection<QuizQuestion> questionList,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAnswersByQuiz in interface IAnswerDAOquestionList - the list of the quizQuestionsplugin - the plugin
public void deleteAnswersByQuestion(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAnswersByQuestion in interface IAnswerDAOnIdQuestion - The question Idplugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||