|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IQuestionAnswerDAO
This interface represents the business object of the answer
Method Summary | |
---|---|
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 |
Method Detail |
---|
int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin using this data access service
void 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 service
void 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 service
List<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 service
Collection<QuestionAnswer> findByIdSubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject
- The Id of the subjectplugin
- The current plugin using this method
int countbySubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin using this data access servicenIdSubject
- The Subject ID
int getMaxOrder(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject
- The id of the Subjectplugin
- The Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |