|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.helpdesk.business.QuestionAnswerHome
public final class QuestionAnswerHome
This class provides instances management methods (create, find, ...) for QuestionAnswer objects
| Method Summary | |
|---|---|
static int |
countbySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count QuestionAnswewr for one Subject |
static QuestionAnswer |
create(QuestionAnswer questionanswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article QuestionAnswer |
static java.util.List<QuestionAnswer> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns QuestionAnswer list |
static java.util.List<QuestionAnswer> |
findByKeywords(java.lang.String strKeywords,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find questions containing a list of keywords |
static QuestionAnswer |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article QuestionAnswer whose identifier is specified in parameter |
static void |
remove(int nIdQuestionAnswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the QuestionAnswer instance whose identifier is specified in parameter |
static void |
removeAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes all QuestionAnswer instances |
static void |
removeBySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the QuestionAnswer instance whose identifier is specified in parameter |
static QuestionAnswer |
update(QuestionAnswer questionanswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates of the QuestionAnswer instance specified in parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static QuestionAnswer create(QuestionAnswer questionanswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
questionanswer - An instance of the QuestionAnswer which contains
the informations to storeplugin - The current plugin using this method
public static QuestionAnswer update(QuestionAnswer questionanswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
questionanswer - An instance of the QuestionAnswer which contains
the informations to storeplugin - The current plugin using this method
public static void remove(int nIdQuestionAnswer,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdQuestionAnswer - The identifier of the article QuestionAnswer to delete in
the databaseplugin - The current plugin using this methodpublic static void removeAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The current plugin using this method
public static void removeBySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject - The identifier of the article QuestionAnswer to delete in
the databaseplugin - The current plugin using this method
public static QuestionAnswer findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - The primary key of the article to find in the databaseplugin - The current plugin using this method
public static java.util.List<QuestionAnswer> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The current plugin using this method
public static java.util.List<QuestionAnswer> findByKeywords(java.lang.String strKeywords,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
strKeywords - The keywordsplugin - The current plugin using this method
public static int countbySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject - IDplugin - The current plugin using this method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||