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

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

public final class PollQuestionDAO
extends java.lang.Object
implements IPollQuestionDAO

This class provides Data Access methods for PollQuestion objects


Constructor Summary
PollQuestionDAO()
           
 
Method Summary
 void delete(int nPollQuestionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(PollQuestion pollQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 PollQuestion load(int nPollQuestionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of PollQuestion from the table
 java.util.List<PollQuestion> selectPollQuestionListByPoll(int nIdPoll, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of pollQuestions by poll id
 void store(PollQuestion pollQuestion, 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

PollQuestionDAO

public PollQuestionDAO()
Method Detail

insert

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

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

load

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

Specified by:
load in interface IPollQuestionDAO
Parameters:
nPollQuestionId - The identifier of PollQuestion
plugin - The Plugin using this data access service
Returns:
the instance of the PollQuestion

delete

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

Specified by:
delete in interface IPollQuestionDAO
Parameters:
nPollQuestionId - The PollQuestion Id
plugin - The Plugin using this data access service

store

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

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

selectPollQuestionListByPoll

public java.util.List<PollQuestion> selectPollQuestionListByPoll(int nIdPoll,
                                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of pollQuestions by poll id

Specified by:
selectPollQuestionListByPoll in interface IPollQuestionDAO
Parameters:
nIdPoll - The poll identifier
plugin - The Plugin using this data access service
Returns:
The List of the PollQuestions


Copyright © 2010 Mairie de Paris. All Rights Reserved.