1 43 package net.jforum.dao; 44 45 import java.util.List ; 46 47 import net.jforum.entities.Post; 48 49 59 public interface PostDAO 60 { 61 69 public Post selectById(int postId) throws Exception ; 70 71 78 public void delete(Post post) throws Exception ; 79 80 87 public void update(Post post) throws Exception ; 88 89 96 public int addNew(Post post) throws Exception ; 97 98 107 public List selectAllByTopicByLimit(int topicId, int startFrom, int count) throws Exception ; 108 109 110 116 public List selectByUserByLimit(int userId,int startFrom, int count) throws Exception ; 117 118 125 public List selectAllByTopic(int topicId) throws Exception ; 126 127 133 public void deleteByTopic(int topicId) throws Exception ; 134 135 141 public int countPreviousPosts(int postId) throws Exception ; 142 } 143 | Popular Tags |