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

java.lang.Object
  extended by fr.paris.lutece.plugins.poll.business.PollDAO
All Implemented Interfaces:
IPollDAO

public final class PollDAO
extends java.lang.Object
implements IPollDAO

This class provides Data Access methods for Poll objects


Constructor Summary
PollDAO()
           
 
Method Summary
 void delete(int nPollId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 fr.paris.lutece.util.ReferenceList getPollsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of polls as a ReferenceList
 void insert(Poll poll, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Poll load(int nPollId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of Poll from the table
 java.util.List<Poll> selectPollsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of polls
 void store(Poll poll, 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

PollDAO

public PollDAO()
Method Detail

insert

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

Specified by:
insert in interface IPollDAO
Parameters:
poll - The poll object
plugin - The Plugin using this data access service

load

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

Specified by:
load in interface IPollDAO
Parameters:
nPollId - The identifier of Poll
plugin - The Plugin using this data access service
Returns:
the instance of the Poll

delete

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

Specified by:
delete in interface IPollDAO
Parameters:
nPollId - The Poll Id
plugin - The Plugin using this data access service

store

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

Specified by:
store in interface IPollDAO
Parameters:
poll - The reference of poll
plugin - The Plugin using this data access service

selectPollsList

public java.util.List<Poll> selectPollsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of polls

Specified by:
selectPollsList in interface IPollDAO
Parameters:
plugin - The Plugin using this data access service
Returns:
The list of the Polls as a List object

getPollsList

public fr.paris.lutece.util.ReferenceList getPollsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of polls as a ReferenceList

Specified by:
getPollsList in interface IPollDAO
Parameters:
plugin - The Plugin using this data access service


Copyright © 2007 Mairie de Paris. All Rights Reserved.