|
||||||||||
| 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 |
java.util.List<? extends AbstractSubject> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type |
java.util.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)
Fidn a subject with the parent id and the order. |
java.util.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. |
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 IAbstractSubjectDAOplugin - The Plugin using this data access service
public 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 service
public 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 service
public 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 service
public 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 java.util.List<? extends AbstractSubject> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll in interface IAbstractSubjectDAOplugin - 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 java.util.Collection<? extends AbstractSubject> findByIdParent(int nIdParent,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Subject specified by the parent id
findByIdParent in interface IAbstractSubjectDAOnIdParent - The parent subject idplugin - The Plugin using this data access service
Subject
public java.util.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 service
public int countQuestion(int nIdSubject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
countQuestion in interface ISubjectDAOplugin - 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 IAbstractSubjectDAOnIdParent - 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 IAbstractSubjectDAOnIdParent - The parent IdnOrder - The orderplugin - The Plugin
Subject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||