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

java.lang.Object
  extended by fr.paris.lutece.plugins.helpdesk.business.QuestionTopicHome

public final class QuestionTopicHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for QuestionTopic objects


Method Summary
static QuestionTopic create(QuestionTopic questionTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of questionTopic
static QuestionTopic findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a questionTopic whose identifier is specified in parameter
static java.util.List<QuestionTopic> getQuestionTopicList(int nIdQuestionType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of all the questionTopics and returns them in form of a collection
static fr.paris.lutece.util.ReferenceList getQuestionTopicsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of all the questionTopics and returns them in form of a collection
static void remove(int nQuestionTopicId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the questionTopic whose identifier is specified in parameter
static java.util.List<QuestionTopic> selectTopicList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of all the questionTopics and returns them in form of a collection
static QuestionTopic update(QuestionTopic questionTopic, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the questionTopic which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static QuestionTopic create(QuestionTopic questionTopic,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of questionTopic

Parameters:
questionTopic - The instance of the QuestionTopic which contains the informations to store
plugin - the Plugin
Returns:
The instance of questionTopic which has been created with its primary key.

update

public static QuestionTopic update(QuestionTopic questionTopic,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the questionTopic which is specified in parameter

Parameters:
questionTopic - The instance of the QuestionTopic which contains the data to store
plugin - the Plugin
Returns:
The instance of the questionTopic which has been updated

remove

public static void remove(int nQuestionTopicId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the questionTopic whose identifier is specified in parameter

Parameters:
nQuestionTopicId - The questionTopic Id
plugin - the Plugin

findByPrimaryKey

public static QuestionTopic findByPrimaryKey(int nKey,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a questionTopic whose identifier is specified in parameter

Parameters:
nKey - The questionTopic primary key
plugin - the Plugin
Returns:
an instance of QuestionTopic

getQuestionTopicsList

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

Parameters:
plugin - the Plugin
Returns:
the list which contains the data of all the questionTopics

getQuestionTopicList

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

Parameters:
nIdQuestionType - The questionType Id
plugin - the Plugin
Returns:
the collection which contains the data of all the questionTopics

selectTopicList

public static java.util.List<QuestionTopic> selectTopicList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of all the questionTopics and returns them in form of a collection

Parameters:
plugin - the Plugin
Returns:
the list which contains the data of all the questionTopics


Copyright © 2007 Mairie de Paris. All Rights Reserved.