fr.paris.lutece.plugins.poll.business
Class PollQuestionHome

java.lang.Object
  extended by fr.paris.lutece.plugins.poll.business.PollQuestionHome

public final class PollQuestionHome
extends java.lang.Object

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


Method Summary
static PollQuestion create(PollQuestion question, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of an article PollQuestion
static PollQuestion findByPrimaryKey(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of PollQuestion whose identifier is specified in parameter
static java.util.List<PollQuestion> findPollQuestionListByPoll(int nIdPoll, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the list of the questions of a Poll object
static void remove(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Deletes the PollQuestion instance whose identifier is specified in parameter
static PollQuestion update(PollQuestion question, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Updates of the PollQuestion instance 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 PollQuestion create(PollQuestion question,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article PollQuestion

Parameters:
question - An instance of the PollQuestion which contains the informations to store
plugin - The Plugin object
Returns:
The instance of the PollQuestion which has been created

update

public static PollQuestion update(PollQuestion question,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Updates of the PollQuestion instance specified in parameter

Parameters:
question - An instance of the PollQuestion which contains the informations to store
plugin - The Plugin object
Returns:
The instance of the PollQuestion which has been updated.

remove

public static void remove(int nIdQuestion,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Deletes the PollQuestion instance whose identifier is specified in parameter

Parameters:
nIdQuestion - The identifier of the article PollQuestion to delete in the database
plugin - The Plugin object

findByPrimaryKey

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

Parameters:
nIdQuestion - The primary key of the article to find in the database
plugin - The Plugin object
Returns:
An instance of the PollQuestion which corresponds to the key

findPollQuestionListByPoll

public static java.util.List<PollQuestion> findPollQuestionListByPoll(int nIdPoll,
                                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of the questions of a Poll object

Parameters:
nIdPoll - The primary key of the poll to find in the database
plugin - The Plugin object
Returns:
An instance of the Poll which corresponds to the key


Copyright © 2008 Mairie de Paris. All Rights Reserved.