Package lumis.service.vote
Class VoteDaoJdbc
- java.lang.Object
-
- lumis.service.vote.VoteDaoJdbc
-
public class VoteDaoJdbc extends 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 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)
-
-
-
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
-
-