lumis.service.vote
Class VoteDaoJdbc

Package class diagram package VoteDaoJdbc
java.lang.Object
  extended by lumis.service.vote.VoteDaoJdbc

public class VoteDaoJdbc
extends Object

JDBC-based DAO for accessing vote related data.

Since:
4.0.2

Constructor Summary
VoteDaoJdbc()
           
 
Method Summary
 Date getVoteLogDate(String questionId, String userId, ITransaction transaction)
           
 List<VoteOptionConfig> getVoteOptions(String voteQuestionId, ITransaction transaction)
          Returns the options for a vote question.
 VoteQuestionConfig getVoteQuestion(String voteQuestionId, ITransaction transaction)
           
 String registerVote(String voteQuestionId, String userId, ITransaction transaction)
           
 void registerVoteOption(String optionId, String voteLogId, ITransaction transaction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VoteDaoJdbc

public VoteDaoJdbc()
Method Detail

getVoteQuestion

public VoteQuestionConfig getVoteQuestion(String voteQuestionId,
                                          ITransaction transaction)
                                   throws PortalException
Throws:
PortalException

registerVote

public String registerVote(String voteQuestionId,
                           String userId,
                           ITransaction transaction)
                    throws PortalException
Throws:
PortalException

getVoteOptions

public List<VoteOptionConfig> getVoteOptions(String voteQuestionId,
                                             ITransaction transaction)
                                      throws PortalException
Returns the options for a vote question.

Parameters:
voteQuestionId - the vote question's id.
transaction - the transaction for persistence access.
Returns:
a list with the question's options.
Throws:
PortalException
Since:
4.0.10

registerVoteOption

public void registerVoteOption(String optionId,
                               String voteLogId,
                               ITransaction transaction)
                        throws PortalException
Throws:
PortalException

getVoteLogDate

public Date getVoteLogDate(String questionId,
                           String userId,
                           ITransaction transaction)
                    throws PortalException
Throws:
PortalException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.