public final class AnswerDAO extends Object implements IAnswerDAO
| Constructor and Description |
|---|
AnswerDAO() |
| Modifier and Type | Method and Description |
|---|---|
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 |
insert(int nIdQuestion,
Answer answer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
boolean |
isAnswersWithProfil(int nIdProfil,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the answer from 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
|
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
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Pluginpublic 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 pluginpublic Answer load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IAnswerDAOnId - The identifier of the answerplugin - The pluginpublic void delete(int nAnswerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAnswerDAOnAnswerId - The identifier of the answerplugin - The pluginpublic void store(Answer answer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IAnswerDAOanswer - The reference of the answerplugin - The pluginpublic List<Answer> selectAnswersList(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAnswersList in interface IAnswerDAOnIdQuestion - the id of the questionplugin - The pluginpublic void deleteAnswersByQuestion(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAnswersByQuestion in interface IAnswerDAOnIdQuestion - The question Idplugin - The pluginpublic boolean isAnswersWithProfil(int nIdProfil,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
isAnswersWithProfil in interface IAnswerDAOnIdProfil - The identifier of the profilplugin - The plugintrue if there is at least one answer with profil,
false otherwiseCopyright © 2019 City of Paris. All rights reserved.