edu.wisc.my.portlets.bookmarks.dao.hibernate
Class HibernateBookmarkStore
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
edu.wisc.my.portlets.bookmarks.dao.hibernate.HibernateBookmarkStore
- All Implemented Interfaces:
- BookmarkStore, org.springframework.beans.factory.InitializingBean
public class HibernateBookmarkStore
- extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
- implements BookmarkStore
Persists and retrieves BookmarkSet objects via Hibernate.
- Version:
- $Revision: 12173 $
- Author:
- Eric Dalquist eric.dalquist@doit.wisc.edu
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
|
Method Summary |
BookmarkSet |
createBookmarkSet(java.lang.String owner,
java.lang.String name)
Creates a BookmarkSet and stores it in the persistent store. |
BookmarkSet |
getBookmarkSet(java.lang.String owner,
java.lang.String name)
Gets a BookmarkSet for the specified owner and name. |
void |
removeBookmarkSet(java.lang.String owner,
java.lang.String name)
Removes a BookmarkSet from the persistent store. |
void |
storeBookmarkSet(BookmarkSet bookmarkSet)
Stores a new BookmarkSet or updates an existing BookmarkSet. |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateBookmarkStore
public HibernateBookmarkStore()
getBookmarkSet
public BookmarkSet getBookmarkSet(java.lang.String owner,
java.lang.String name)
- Description copied from interface:
BookmarkStore
- Gets a BookmarkSet for the specified owner and name. If no BookmarkSet can be found for the
owner and name null is retuned.
- Specified by:
getBookmarkSet in interface BookmarkStore
- Parameters:
owner - The owner of the BookmarkSet to retreive.name - The name of the BookmarkSet to retrieve.
- Returns:
- The BookmarkSet for the name and owner, null if one is not found for the owner and name.
- See Also:
BookmarkStore.getBookmarkSet(java.lang.String, java.lang.String)
storeBookmarkSet
public void storeBookmarkSet(BookmarkSet bookmarkSet)
- Description copied from interface:
BookmarkStore
- Stores a new BookmarkSet or updates an existing BookmarkSet. BookmarkSets are keyed uniquely
using the name and owner fields.
- Specified by:
storeBookmarkSet in interface BookmarkStore
- Parameters:
bookmarkSet - The BookmarkSet to persist.
TODO should this return something?- See Also:
BookmarkStore.storeBookmarkSet(edu.wisc.my.portlets.bookmarks.domain.BookmarkSet)
removeBookmarkSet
public void removeBookmarkSet(java.lang.String owner,
java.lang.String name)
- Description copied from interface:
BookmarkStore
- Removes a BookmarkSet from the persistent store. If a BookmarkSet matching
the owner and name cannot be found this is a noop.
- Specified by:
removeBookmarkSet in interface BookmarkStore
- Parameters:
owner - The owner of the BookmarkSet to remove.name - The name of the BookmarkSet to remove.- See Also:
BookmarkStore.removeBookmarkSet(java.lang.String, java.lang.String)
createBookmarkSet
public BookmarkSet createBookmarkSet(java.lang.String owner,
java.lang.String name)
- Description copied from interface:
BookmarkStore
- Creates a BookmarkSet and stores it in the persistent store.
- Specified by:
createBookmarkSet in interface BookmarkStore
- Parameters:
owner - The owner of the BookmarkSet to create.name - The name of the BookmarkSet to create.
- Returns:
- The new BookmarkSet.
- See Also:
BookmarkStore.createBookmarkSet(java.lang.String, java.lang.String)
Copyright © 1998-2007 Java Architectures Special Interest Group. All Rights Reserved.