public final class SubjectDAO extends Object implements ISubjectDAO
| Constructor and Description |
|---|
SubjectDAO() |
| Modifier and Type | Method and Description |
|---|---|
int |
countQuestion(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return the count of all announce for Field
|
void |
delete(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteAllLinksToFaq(int nIdAbstractSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete a record in the table.
|
void |
deleteLinkToFaq(int nIdAbstractSubject,
int nIdFaq,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete a record in the table.
|
List<? extends AbstractSubject> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type
|
Subject |
findByFaqOrder(int nIdFaq,
int nOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a subject with the faq id and the order.
|
Collection<? extends AbstractSubject> |
findByIdFaq(int nIdFaq,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all
Subject specified by the Faq id |
Collection<? extends AbstractSubject> |
findByIdParent(int nIdParent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all
Subject specified by the parent id |
Subject |
findByOrder(int nIdParent,
int nOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a subject with the parent id and the order.
|
List<QuestionAnswer> |
findQuestions(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all questions on a subject
|
fr.paris.lutece.util.ReferenceList |
findSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type
|
int |
getMaxOrder(int nIdParent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the max order of a parent subject
|
void |
insert(AbstractSubject abstractSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insertLinkToFaq(int nIdAbstractSubject,
int nIdFaq,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Subject |
load(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of Subject from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate a new primary key to add a new Subject
|
void |
store(AbstractSubject abstractSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey in interface IAbstractSubjectDAOplugin - The Plugin using this data access servicepublic void insert(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IAbstractSubjectDAOabstractSubject - The Instance of the object Subjectplugin - The Plugin using this data access servicepublic void delete(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAbstractSubjectDAOnIdSubject - The indentifier of the object Subjectplugin - The Plugin using this data access servicepublic Subject load(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IAbstractSubjectDAOnIdSubject - The indentifier of the object Subjectplugin - The Plugin using this data access servicepublic void store(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IAbstractSubjectDAOabstractSubject - The instance of the Subject to updateplugin - The Plugin using this data access servicepublic List<? extends AbstractSubject> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll in interface IAbstractSubjectDAOplugin - The Plugin using this data access servicepublic fr.paris.lutece.util.ReferenceList findSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Plugin using this data access servicepublic Collection<? extends AbstractSubject> findByIdParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Subject specified by the parent idfindByIdParent in interface IAbstractSubjectDAOnIdParent - The parent subject idplugin - The Plugin using this data access serviceSubjectpublic Collection<? extends AbstractSubject> findByIdFaq(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Subject specified by the Faq idfindByIdFaq in interface IAbstractSubjectDAOnIdFaq - The faq subject idplugin - The Plugin using this data access serviceSubjectpublic List<QuestionAnswer> findQuestions(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findQuestions in interface ISubjectDAOnIdSubject - The identifier of the subjectplugin - The Plugin using this data access servicepublic int countQuestion(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
countQuestion in interface ISubjectDAOplugin - The current plugin using this methodnIdSubject - The subject IDpublic int getMaxOrder(int nIdParent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMaxOrder in interface IAbstractSubjectDAOnIdParent - The id of the parent subjectplugin - The Pluginpublic Subject findByOrder(int nIdParent, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByOrder in interface IAbstractSubjectDAOnIdParent - The parent IdnOrder - The orderplugin - The PluginSubjectpublic Subject findByFaqOrder(int nIdFaq, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByFaqOrder in interface IAbstractSubjectDAOnIdFaq - The faq IdnOrder - The orderplugin - The PluginSubjectpublic void insertLinkToFaq(int nIdAbstractSubject,
int nIdFaq,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertLinkToFaq in interface IAbstractSubjectDAOnIdAbstractSubject - The id of the object SubjectnIdFaq - The parent id of the object Faqplugin - The Plugin using this data access servicepublic void deleteLinkToFaq(int nIdAbstractSubject,
int nIdFaq,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteLinkToFaq in interface IAbstractSubjectDAOnIdAbstractSubject - The id of the object SubjectnIdFaq - The parent id of the object Faqplugin - The Plugin using this data access servicepublic void deleteAllLinksToFaq(int nIdAbstractSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAllLinksToFaq in interface IAbstractSubjectDAOnIdAbstractSubject - The id of the object Subjectplugin - The Plugin using this data access serviceCopyright © 2018 City of Paris. All rights reserved.