| net.jforum.dao.BookmarkDAO
All known Subclasses: net.jforum.dao.generic.GenericBookmarkDAO,
BookmarkDAO | public interface BookmarkDAO (Code) | | author: Rafael Steil version: $Id: BookmarkDAO.java,v 1.6 2006/08/23 02:13:35 rafaelsteil Exp $ |
Method Summary | |
public void | add(Bookmark b) Adds a new bookmark. | public void | remove(int bookmarkId) Removes a bookmark. | public Bookmark | selectById(int bookmarkId) Gets a bookmark. | public List | selectByUser(int userId, int relationType) Gets all bookmarks of a given type.
Parameters: userId - The bookmark's owner Parameters: relationType - Any valid type declared innet.jforum.entities.BookmarkType A list with all results found. | public List | selectByUser(int userId) Gets all bookmarks from some user.
Parameters: userId - The bookmark's ownernet.jforum.entities.BookmarkType A list with all results found. | public Bookmark | selectForUpdate(int relationId, int relationType, int userId) Gets a bookmark for edition. | public void | update(Bookmark b) Updates a bookmark. |
add | public void add(Bookmark b)(Code) | | Adds a new bookmark.
Parameters: b - The bookmark to add |
remove | public void remove(int bookmarkId)(Code) | | Removes a bookmark.
Parameters: bookmarkId - The bookmark's id to remove |
selectById | public Bookmark selectById(int bookmarkId)(Code) | | Gets a bookmark.
Parameters: bookmarkId - The bookmark id A Bookmark instance or null if no entry found |
selectByUser | public List selectByUser(int userId, int relationType)(Code) | | Gets all bookmarks of a given type.
Parameters: userId - The bookmark's owner Parameters: relationType - Any valid type declared innet.jforum.entities.BookmarkType A list with all results found. Each entry isa net.jforum.entities.Bookmark instance. |
selectByUser | public List selectByUser(int userId)(Code) | | Gets all bookmarks from some user.
Parameters: userId - The bookmark's ownernet.jforum.entities.BookmarkType A list with all results found. Each entry isa net.jforum.entities.Bookmark instance. |
selectForUpdate | public Bookmark selectForUpdate(int relationId, int relationType, int userId)(Code) | | Gets a bookmark for edition.
Parameters: relationId - The relation's id Parameters: relationType - The relation type. Parameters: userId - The bookmark's owner A bookmark instance of null if the record cannot be found |
update | public void update(Bookmark b)(Code) | | Updates a bookmark.
Only the fields publicVisible, title
and description are changed.
All other fields remain with the same value.
Parameters: b - The bookmark to update |
|
|