public final class QuestionAnswerHome extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FIRST_ORDER |
| Modifier and Type | Method and Description |
|---|---|
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 List<QuestionAnswer> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns QuestionAnswer list
|
static Collection<QuestionAnswer> |
findByIdSubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find questions specified by id subject
|
static List<QuestionAnswer> |
findByKeywords(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 |
goDown(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Move down a question into the list
|
static void |
goUp(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Move up an
AbstractSubject into the list |
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
|
public static final int FIRST_ORDER
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 methodpublic 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 methodpublic 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 methodpublic 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 methodpublic 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 methodpublic static List<QuestionAnswer> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The current plugin using this methodpublic static List<QuestionAnswer> findByKeywords(String strKeywords, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strKeywords - The keywordsplugin - The current plugin using this methodpublic static Collection<QuestionAnswer> findByIdSubject(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject - The Id of the subjectplugin - The current plugin using this methodpublic static int countbySubject(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSubject - IDplugin - The current plugin using this methodpublic static void goDown(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nId - The id of the questionplugin - The pluginpublic static void goUp(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
AbstractSubject into the listnId - The id of the AbstractSubjectplugin - The pluginCopyright © 2023 City of Paris. All rights reserved.