|
||||||||||
| 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<Subject> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type |
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 |
void |
insert(Subject subject,
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(Subject subject,
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 ISubjectDAOplugin - The Plugin using this data access service
public void insert(Subject subject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ISubjectDAOsubject - 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 ISubjectDAOnIdSubject - 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 ISubjectDAOnIdSubject - The indentifier of the object Subjectplugin - The Plugin using this data access service
public void store(Subject subject,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ISubjectDAOsubject - The instance of the Subject to updateplugin - The Plugin using this data access servicepublic java.util.List<Subject> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll in interface ISubjectDAOplugin - The Plugin using this data access service
public fr.paris.lutece.util.ReferenceList findSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findSubject in interface ISubjectDAOplugin - The Plugin using this data access service
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||