hoplugins.transfers.dao
Class BookmarkDAO

java.lang.Object
  extended byhoplugins.transfers.dao.BookmarkDAO

public final class BookmarkDAO
extends java.lang.Object

DAO to store and retrieve bookmarks in the HO database.

Author:
Boy van der Werf

Method Summary
static void addBookmark(int type, int id, java.lang.String name)
          Adds a bookmark to the HO database.
static java.util.List getBookmarks(int type)
          Gets all bookmarks of a specified type.
static void removeBookmark(int type, int id)
          Remove a bookmark from the HO database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBookmarks

public static java.util.List getBookmarks(int type)
Gets all bookmarks of a specified type.

Parameters:
type - Type of bookmark
Returns:
List of bookmarks

addBookmark

public static void addBookmark(int type,
                               int id,
                               java.lang.String name)
Adds a bookmark to the HO database.

Parameters:
type - Type of bookmark
id - Bookmark id
name - Bookmark name

removeBookmark

public static void removeBookmark(int type,
                                  int id)
Remove a bookmark from the HO database.

Parameters:
type - Type of bookmark
id - Bookmark id


Copyright © 2005 Hattrick Organizer Plugins Project. All Rights Reserved.