|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.helpdesk.business.SubjectDAO
public final class SubjectDAO
This class provides Data Access methods for Subject objects
Constructor Summary | |
---|---|
SubjectDAO()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubjectDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey
in interface IAbstractSubjectDAO
plugin
- The Plugin using this data access service
public void insert(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IAbstractSubjectDAO
abstractSubject
- 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 IAbstractSubjectDAO
nIdSubject
- 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 IAbstractSubjectDAO
nIdSubject
- The indentifier of the object Subjectplugin
- The Plugin using this data access service
public void store(AbstractSubject abstractSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IAbstractSubjectDAO
abstractSubject
- 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 IAbstractSubjectDAO
plugin
- The Plugin using this data access service
public fr.paris.lutece.util.ReferenceList findSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Plugin using this data access service
public Collection<? extends AbstractSubject> findByIdParent(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Subject
specified by the parent id
findByIdParent
in interface IAbstractSubjectDAO
nIdParent
- The parent subject idplugin
- The Plugin using this data access service
Subject
public Collection<? extends AbstractSubject> findByIdFaq(int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Subject
specified by the Faq id
findByIdFaq
in interface IAbstractSubjectDAO
nIdFaq
- The faq subject idplugin
- The Plugin using this data access service
Subject
public List<QuestionAnswer> findQuestions(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findQuestions
in interface ISubjectDAO
nIdSubject
- The identifier of the subjectplugin
- The Plugin using this data access service
public int countQuestion(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countQuestion
in interface ISubjectDAO
plugin
- The current plugin using this methodnIdSubject
- The subject ID
public int getMaxOrder(int nIdParent, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMaxOrder
in interface IAbstractSubjectDAO
nIdParent
- The id of the parent subjectplugin
- The Plugin
public Subject findByOrder(int nIdParent, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByOrder
in interface IAbstractSubjectDAO
nIdParent
- The parent IdnOrder
- The orderplugin
- The Plugin
Subject
public Subject findByFaqOrder(int nIdFaq, int nOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByFaqOrder
in interface IAbstractSubjectDAO
nIdFaq
- The faq IdnOrder
- The orderplugin
- The Plugin
Subject
public void insertLinkToFaq(int nIdAbstractSubject, int nIdFaq, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertLinkToFaq
in interface IAbstractSubjectDAO
nIdAbstractSubject
- 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 IAbstractSubjectDAO
nIdAbstractSubject
- 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 IAbstractSubjectDAO
nIdAbstractSubject
- The id of the object Subjectplugin
- The Plugin using this data access service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |