public class VoteDaoJdbc extends Object
Constructor and Description |
---|
VoteDaoJdbc() |
Modifier and Type | Method and 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) |
public VoteQuestionConfig getVoteQuestion(String voteQuestionId, ITransaction transaction) throws PortalException
PortalException
public String registerVote(String voteQuestionId, String userId, ITransaction transaction) throws PortalException
PortalException
public List<VoteOptionConfig> getVoteOptions(String voteQuestionId, ITransaction transaction) throws PortalException
voteQuestionId
- the vote question's id.transaction
- the transaction for persistence access.PortalException
public void registerVoteOption(String optionId, String voteLogId, ITransaction transaction) throws PortalException
PortalException
public Date getVoteLogDate(String questionId, String userId, ITransaction transaction) throws PortalException
PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.