|
||||||||||
| 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 |
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 |
| 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 IQuestionAnswerDAOplugin - The Plugin using this data access service
public 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 service
public 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 service
public 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 service
public 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 service
public 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 service
public 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 service
public 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 method
public 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 ID
public int getMaxOrder(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMaxOrder in interface IQuestionAnswerDAOnIdSubject - The id of the Subjectplugin - The Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||