Package lumis.service.vote
Class VoteDaoJdbc
- java.lang.Object
-
- lumis.service.vote.VoteDaoJdbc
-
public class VoteDaoJdbc extends java.lang.Object
JDBC-based DAO for accessing vote related data.- Since:
- 4.0.2
- Version:
- $Revision: 10707 $ $Date: 2009-07-20 18:47:03 -0300 (Mon, 20 Jul 2009) $
-
-
Constructor Summary
Constructors Constructor Description VoteDaoJdbc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Date
getVoteLogDate(java.lang.String questionId, java.lang.String userId, ITransaction transaction)
java.util.List<VoteOptionConfig>
getVoteOptions(java.lang.String voteQuestionId, ITransaction transaction)
Returns the options for a vote question.VoteQuestionConfig
getVoteQuestion(java.lang.String voteQuestionId, ITransaction transaction)
java.lang.String
registerVote(java.lang.String voteQuestionId, java.lang.String userId, ITransaction transaction)
void
registerVoteOption(java.lang.String optionId, java.lang.String voteLogId, ITransaction transaction)
-
-
-
Method Detail
-
getVoteQuestion
public VoteQuestionConfig getVoteQuestion(java.lang.String voteQuestionId, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
registerVote
public java.lang.String registerVote(java.lang.String voteQuestionId, java.lang.String userId, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
getVoteOptions
public java.util.List<VoteOptionConfig> getVoteOptions(java.lang.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(java.lang.String optionId, java.lang.String voteLogId, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
getVoteLogDate
public java.sql.Date getVoteLogDate(java.lang.String questionId, java.lang.String userId, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
-