public final class QuestionAnswerDAO extends Object implements IQuestionAnswerDAO
| Constructor and Description |
|---|
QuestionAnswerDAO() |
| Modifier and Type | Method and Description |
|---|---|
int |
countbySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
delete(int nIdQuestionAnswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all records from the table
|
void |
deleteBySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
List<QuestionAnswer> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects.
|
Collection<QuestionAnswer> |
findByIdSubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find questions specified by id subject
|
List<QuestionAnswer> |
findByKeywords(String strKeywords,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of QuestionAnswer from the table
|
int |
getMaxOrder(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the max order of a given subject
|
void |
insert(QuestionAnswer questionAnswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
QuestionAnswer |
load(int nIdQuestionAnswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of QuestionAnswer from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate a new primary key to add a new QuestionAnswer
|
void |
store(QuestionAnswer questionAnswer,
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)
newPrimaryKey in interface IQuestionAnswerDAOplugin - The Plugin using this data access servicepublic void insert(QuestionAnswer questionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IQuestionAnswerDAOquestionAnswer - The Instance of the object QuestionAnswerplugin - The Plugin using this data access servicepublic void delete(int nIdQuestionAnswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IQuestionAnswerDAOnIdQuestionAnswer - The indentifier of the object QuestionAnswerplugin - The Plugin using this data access servicepublic void deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAll in interface IQuestionAnswerDAOplugin - The Plugin using this data access servicepublic void deleteBySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteBySubject in interface IQuestionAnswerDAOnIdSubject - The indentifier of the object QuestionAnswerplugin - The Plugin using this data access servicepublic QuestionAnswer load(int nIdQuestionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IQuestionAnswerDAOnIdQuestionAnswer - The indentifier of the object QuestionAnswerplugin - The Plugin using this data access servicepublic void store(QuestionAnswer questionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IQuestionAnswerDAOquestionAnswer - The instance of the QuestionAnswer to updateplugin - The Plugin using this data access servicepublic List<QuestionAnswer> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll in interface IQuestionAnswerDAOplugin - The Plugin using this data access servicepublic List<QuestionAnswer> findByKeywords(String strKeywords, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByKeywords in interface IQuestionAnswerDAOstrKeywords - The keywords which are searched in question/answerplugin - The Plugin using this data access servicepublic Collection<QuestionAnswer> findByIdSubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdSubject in interface IQuestionAnswerDAOnIdSubject - The Id of the subjectplugin - The current plugin using this methodpublic int countbySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
countbySubject in interface IQuestionAnswerDAOplugin - The Plugin using this data access servicenIdSubject - The Subject IDpublic int getMaxOrder(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMaxOrder in interface IQuestionAnswerDAOnIdSubject - The id of the Subjectplugin - The PluginCopyright © 2015 City of Paris. All rights reserved.