public class HibernateBookmarkDAO extends HibernatePersistentObjectDAO<Bookmark> implements BookmarkDAO
BookmarkDAO
entityClass, 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, store
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet, store
public List<Bookmark> findByUserId(long userId)
BookmarkDAO
findByUserId
in interface BookmarkDAO
userId
- ID of the user.public List<Bookmark> findByUserIdAndDocId(long userId, long docId)
BookmarkDAO
findByUserIdAndDocId
in interface BookmarkDAO
userId
- ID of the user.docId
- ID of the document.Copyright © 2008-2014 Logical Objects. All Rights Reserved.