|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.helpdesk.business.QuestionAnswerDAO
public final class QuestionAnswerDAO
This class provides Data Access methods for QuestionAnswerAnswer objects
Constructor Summary | |
---|---|
QuestionAnswerDAO()
|
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 |
deleteBySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
java.util.List<QuestionAnswer> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all objects. |
java.util.List<QuestionAnswer> |
findByKeywords(java.lang.String strKeywords,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of QuestionAnswer from the table |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuestionAnswerDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey
in interface IQuestionAnswerDAO
plugin
- The Plugin using this data access service
public void insert(QuestionAnswer questionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IQuestionAnswerDAO
questionAnswer
- 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 IQuestionAnswerDAO
nIdQuestionAnswer
- The indentifier of the object QuestionAnswerplugin
- The Plugin using this data access servicepublic void deleteBySubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteBySubject
in interface IQuestionAnswerDAO
nIdSubject
- 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 IQuestionAnswerDAO
nIdQuestionAnswer
- The indentifier of the object QuestionAnswerplugin
- The Plugin using this data access service
public void store(QuestionAnswer questionAnswer, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IQuestionAnswerDAO
questionAnswer
- The instance of the QuestionAnswer to updateplugin
- The Plugin using this data access servicepublic java.util.List<QuestionAnswer> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll
in interface IQuestionAnswerDAO
plugin
- The Plugin using this data access service
public java.util.List<QuestionAnswer> findByKeywords(java.lang.String strKeywords, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByKeywords
in interface IQuestionAnswerDAO
strKeywords
- The keywords which are searched in question/answerplugin
- The Plugin using this data access service
public int countbySubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countbySubject
in interface IQuestionAnswerDAO
plugin
- The Plugin using this data access servicenIdSubject
- The Subject ID
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |