| net.jforum.dao.PollDAO
All known Subclasses: net.jforum.dao.generic.GenericPollDAO,
PollDAO | public interface PollDAO (Code) | | |
addNew | public int addNew(Poll poll)(Code) | | Adds a new Poll.
Parameters: poll - Poll Reference to a valid and configured Poll object The new ID |
delete | public void delete(int pollId)(Code) | | Delete a Poll.
Parameters: pollId - The Poll to delete |
deleteByTopicId | public void deleteByTopicId(int topicId)(Code) | | Delete a Poll.
Parameters: topicId - The topic id for the poll to delete |
hasUserVotedOnPoll | public boolean hasUserVotedOnPoll(int pollId, int userId)(Code) | | Tells if the user has already voted on the given poll
Parameters: pollId - the poll id that is being checked Parameters: userId - the user id to check the vote for true if the user has already voted on the given poll |
hasUserVotedOnPoll | public boolean hasUserVotedOnPoll(int pollId, String ipAddress)(Code) | | Tells if any user has already voted on the given poll from the given IP
Parameters: pollId - the poll id that is being checked Parameters: ipAddress - the IP address of the user to check the vote for true if the user has already voted on the given poll |
selectById | public Poll selectById(int pollId)(Code) | | Gets a specific Poll .
Parameters: pollId - The Poll ID to search Poll object containing all the information |
update | public void update(Poll poll)(Code) | | Updates a Poll.
Parameters: poll - Reference to a Poll object to update |
voteOnPoll | public void voteOnPoll(int pollId, int optionId, int userId, String ipAddress)(Code) | | Increments the vote count on the poll for the given poll id and option id
Parameters: pollId - the poll id that the vote is for Parameters: optionId - the option that was selected for the poll Parameters: userId - int Parameters: ipAddress - String |
|
|