1 package org.javabb.dao.entity; 2 3 import java.util.Date ; 4 import java.util.List ; 5 import java.util.Set ; 6 7 import org.javabb.dao.DAOConstants; 8 import org.javabb.vo.Forum; 9 10 25 26 31 public interface IForumDAO extends DAOConstants { 32 33 37 public Forum load(Long id); 38 39 44 public void transferForum(Forum forum, int forumTo) throws Exception ; 45 46 50 public void deleteForum(Forum forum) throws Exception ; 51 52 56 public void refreshForum(Long forumId); 57 58 62 public void refreshTopic(Long topicId); 63 64 68 public void refreshPost(Long postId); 69 70 73 public List findAll(); 74 75 public List findByCategoryOrderAsc(Long id); 76 77 81 public List findByCategory(Long id); 82 83 86 public void update(Forum forum); 87 88 91 public int countAllForums(); 92 93 98 public Forum insertForum(Forum forum); 99 100 106 public List obtainUnreadForuns(Set readTopics, Date lastUserVisit, Long userId) throws Exception ; 107 108 } | Popular Tags |