fr.paris.lutece.plugins.helpdesk.business
Interface ISubjectDAO

All Known Implementing Classes:
SubjectDAO

public interface ISubjectDAO

Interface for Subject DAO


Method Summary
 int countQuestion(int nIdSubject, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 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
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate a new primary key to add a new Subject

Parameters:
plugin - The Plugin using this data access service
Returns:
The new key.

insert

void insert(Subject subject,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
subject - The Instance of the object Subject
plugin - The Plugin using this data access service

delete

void delete(int nIdSubject,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdSubject - The indentifier of the object Subject
plugin - The Plugin using this data access service

load

Subject load(int nIdSubject,
             fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of Subject from the table

Parameters:
nIdSubject - The indentifier of the object Subject
plugin - The Plugin using this data access service
Returns:
The Instance of the object Subject

store

void store(Subject subject,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
subject - The instance of the Subject to update
plugin - The Plugin using this data access service

findAll

java.util.List<Subject> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type

Parameters:
plugin - The Plugin using this data access service
Returns:
A collection of objects

findSubject

fr.paris.lutece.util.ReferenceList findSubject(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type

Parameters:
plugin - The Plugin using this data access service
Returns:
A collection of objects

findQuestions

java.util.List<QuestionAnswer> findQuestions(int nIdSubject,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all questions on a subject

Parameters:
nIdSubject - The identifier of the subject
plugin - The Plugin using this data access service
Returns:
A collection of questions

countQuestion

int countQuestion(int nIdSubject,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
plugin - The current plugin using this method
nIdSubject - The subject ID
Returns:
count of announce for Field


Copyright © 2007 Mairie de Paris. All Rights Reserved.