1 42 package net.jforum.dao; 43 44 import java.util.List ; 45 46 import net.jforum.entities.Bookmark; 47 48 52 public interface BookmarkDAO 53 { 54 60 public void add(Bookmark b) throws Exception ; 61 62 71 public void update(Bookmark b) throws Exception ; 72 73 79 public void remove(int bookmarkId) throws Exception ; 80 81 91 public List selectByUser(int userId, int relationType) throws Exception ; 92 93 102 public List selectByUser(int userId) throws Exception ; 103 104 111 public Bookmark selectById(int bookmarkId) throws Exception ; 112 113 123 public Bookmark selectForUpdate(int relationId, int relationType, int userId) throws Exception ; 124 } 125 | Popular Tags |