public interface IQuestionAnswerDAO
| 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
|
int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin using this data access servicevoid insert(QuestionAnswer questionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
questionAnswer - The Instance of the object QuestionAnswerplugin - The Plugin using this data access servicevoid delete(int nIdQuestionAnswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuestionAnswer - The indentifier of the object QuestionAnswerplugin - The Plugin using this data access servicevoid deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin using this data access servicevoid deleteBySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject - The indentifier of the object QuestionAnswerplugin - The Plugin using this data access serviceQuestionAnswer load(int nIdQuestionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuestionAnswer - The indentifier of the object QuestionAnswerplugin - The Plugin using this data access servicevoid store(QuestionAnswer questionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
questionAnswer - The instance of the QuestionAnswer to updateplugin - The Plugin using this data access serviceList<QuestionAnswer> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin using this data access serviceList<QuestionAnswer> findByKeywords(String strKeywords, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strKeywords - The keywords which are searched in question/answerplugin - The Plugin using this data access serviceCollection<QuestionAnswer> findByIdSubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject - The Id of the subjectplugin - The current plugin using this methodint countbySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin using this data access servicenIdSubject - The Subject IDint getMaxOrder(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject - The id of the Subjectplugin - The PluginCopyright © 2018 City of Paris. All rights reserved.