public class HibernateBookmarkDAO extends HibernatePersistentObjectDAO<Bookmark> implements BookmarkDAO
BookmarkDAOentityClass, log, sessionFactory| Constructor and Description |
|---|
HibernateBookmarkDAO() |
| Modifier and Type | Method and Description |
|---|---|
List<Bookmark> |
findByUserId(long userId)
Finds all bookmarks for the given user id.
|
List<Bookmark> |
findByUserIdAndDocId(long userId,
long docId)
Finds all bookmarks for the given user id and the given document id.
|
bulkUpdate, delete, deleteAll, evict, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, flush, getConnection, getCurrentSession, getDbms, getSessionFactory, initialize, isHsql, isMySQL, isOracle, isSqlServer, jdbcUpdate, jdbcUpdate, merge, prepareQuery, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, refresh, saveOrUpdate, setSessionFactory, storeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, storepublic List<Bookmark> findByUserId(long userId)
BookmarkDAOfindByUserId in interface BookmarkDAOuserId - ID of the user.public List<Bookmark> findByUserIdAndDocId(long userId, long docId)
BookmarkDAOfindByUserIdAndDocId in interface BookmarkDAOuserId - ID of the user.docId - ID of the document.Copyright © 2008-2014 Logical Objects. All Rights Reserved.