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
 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
 java.util.List<QuestionTopic> selectTopicList(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

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

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 - the 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 - the 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 - the 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 - the 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 - the Plugin
Returns:
The List which contains the data of all the questionTopics

selectTopicList

public java.util.List<QuestionTopic> selectTopicList(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:
plugin - the 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 Identifier of Question Type
plugin - the Plugin
Returns:
The List which contains the data of all the questionTopics


Copyright © 2007 Mairie de Paris. All Rights Reserved.