1 43 package net.jforum.dao; 44 45 import net.jforum.entities.Poll; 46 47 public interface PollDAO { 48 49 56 public Poll selectById(int pollId) throws Exception ; 57 58 65 public void delete(int pollId) throws Exception ; 66 67 74 public void deleteByTopicId(int topicId) throws Exception ; 75 76 83 public void update(Poll poll) throws Exception ; 84 85 92 public int addNew(Poll poll) throws Exception ; 93 94 102 public void voteOnPoll(int pollId, int optionId, int userId, String ipAddress) 103 throws Exception ; 104 105 112 public boolean hasUserVotedOnPoll(int pollId, int userId) throws Exception ; 113 114 121 public boolean hasUserVotedOnPoll(int pollId, String ipAddress) throws Exception ; 122 } 123 | Popular Tags |