fr.paris.lutece.plugins.helpdesk.business
Class QuestionTopicDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.helpdesk.business.QuestionTopicDAO
All Implemented Interfaces:
IQuestionTopicDAO

public final class QuestionTopicDAO
extends java.lang.Object
implements IQuestionTopicDAO

This class provides Data Access methods for QuestionTopic objects


Constructor Summary
QuestionTopicDAO()
           
 
Method Summary
 void delete(int nQuestionTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 java.util.List<fr.paris.lutece.portal.business.user.AdminUser> getUsersRoles(int nIdQuestionTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return all the users for a given question type.
 void insert(QuestionTopic questionTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 QuestionTopic load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the questionTopic from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.List<QuestionTopic> selectQuestionTopicList(int nIdQuestionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the questionTopics and returns them in form of a collection
 fr.paris.lutece.util.ReferenceList selectQuestionTopicsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the questionTopics and returns them in form of a collection
 fr.paris.lutece.util.ReferenceList selectTopicList(int nIdQuestionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the questionTopics and returns them in form of a collection
 void store(QuestionTopic questionTopic, 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

QuestionTopicDAO

public QuestionTopicDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Returns:
Plugin plugin

insert

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

Specified by:
insert in interface IQuestionTopicDAO
Parameters:
questionTopic - instance of the QuestionTopic object to insert
Plugin - plugin

load

public QuestionTopic load(int nId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the questionTopic from the table

Specified by:
load in interface IQuestionTopicDAO
Parameters:
nId - The identifier of the questionTopic
Plugin - plugin
Returns:
the instance of the QuestionTopic

delete

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

Specified by:
delete in interface IQuestionTopicDAO
Parameters:
nQuestionTopicId - The identifier of the questionTopic
Plugin - plugin

store

public void store(QuestionTopic questionTopic,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IQuestionTopicDAO
Parameters:
questionTopic - The reference of the questionTopic
Plugin - plugin

selectQuestionTopicsList

public fr.paris.lutece.util.ReferenceList selectQuestionTopicsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the questionTopics and returns them in form of a collection

Specified by:
selectQuestionTopicsList in interface IQuestionTopicDAO
Parameters:
Plugin - plugin
Returns:
The List which contains the data of all the questionTopics

selectTopicList

public fr.paris.lutece.util.ReferenceList selectTopicList(int nIdQuestionType,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the questionTopics and returns them in form of a collection

Specified by:
selectTopicList in interface IQuestionTopicDAO
Parameters:
nIdQuestionType - The Question Type ID
Plugin - plugin
Returns:
The List which contains the data of all the questionTopics

selectQuestionTopicList

public java.util.List<QuestionTopic> selectQuestionTopicList(int nIdQuestionType,
                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the questionTopics and returns them in form of a collection

Specified by:
selectQuestionTopicList in interface IQuestionTopicDAO
Parameters:
nIdQuestionType - The Question Type ID
Plugin - plugin
Returns:
The List which contains the data of all the questionTopics

getUsersRoles

public java.util.List<fr.paris.lutece.portal.business.user.AdminUser> getUsersRoles(int nIdQuestionTopic,
                                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return all the users for a given question type.

Specified by:
getUsersRoles in interface IQuestionTopicDAO
Parameters:
nIdQuestionTopic - The identifier of the question type
plugin - The Plugin using this data access service
Returns:
A Collection of AppUser objects


Copyright © 2007 Mairie de Paris. All Rights Reserved.