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

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

public final class PollChoiceHome
extends java.lang.Object

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


Method Summary
static PollChoice create(PollChoice choice, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of an article PollChoice
static PollChoice findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of the article PollChoice whose identifier is specified in parameter
static void remove(int nIdChoice, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Deletes the PollChoice instance whose identifier is specified in parameter
static PollChoice update(PollChoice choice, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Updates of the PollChoice 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 PollChoice create(PollChoice choice,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of an article PollChoice

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

update

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

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

remove

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

Parameters:
nIdChoice - The identifier of the article PollChoice to delete in the database
plugin - The Plugin object

findByPrimaryKey

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

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


Copyright © 2010 Mairie de Paris. All Rights Reserved.