public class HibernateUserDocDAO extends HibernatePersistentObjectDAO<UserDoc> implements UserDocDAO
UserDocDAOentityClass, log, sessionFactory| Constructor and Description |
|---|
HibernateUserDocDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(long docId,
long userId)
This method deletes an userdoc by the alternate key.
|
boolean |
deleteByDocId(long docId)
This method deletes all userdocs by the document id.
|
boolean |
deleteByUserId(long userId)
This method deletes all userdocs by the user id.
|
boolean |
exists(long docId,
long userId)
Check if an userdoc exists.
|
List<UserDoc> |
findByDocId(long docId)
Selects all userdocs for a given doc.
|
UserDoc |
findByMinDate(long userId)
Selects the oldest userdoc for a given user.
|
List<UserDoc> |
findByUserId(long userId)
Selects all userdocs for a given user.
|
int |
getCount(long userId)
Select the count of userdocs for an user.
|
boolean |
store(UserDoc userdoc)
This method persists the entity object.
|
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, setSessionFactoryclone, 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, queryForRowSetpublic boolean delete(long docId,
long userId)
UserDocDAOdelete in interface UserDocDAOcom.logicaldoc.core.security.dao.UserDocDAO#delete(long,
java.lang.String)public boolean exists(long docId,
long userId)
UserDocDAOexists in interface UserDocDAOdocId - ID of the documentpublic UserDoc findByMinDate(long userId)
UserDocDAOfindByMinDate in interface UserDocDAOpublic List<UserDoc> findByUserId(long userId)
UserDocDAOfindByUserId in interface UserDocDAOpublic int getCount(long userId)
UserDocDAOgetCount in interface UserDocDAOpublic boolean store(UserDoc userdoc)
PersistentObjectDAOstore in interface PersistentObjectDAO<UserDoc>store in class HibernatePersistentObjectDAO<UserDoc>userdoc - entity to be stored.public boolean deleteByDocId(long docId)
UserDocDAOdeleteByDocId in interface UserDocDAOUserDocDAO.deleteByDocId(long)public List<UserDoc> findByDocId(long docId)
UserDocDAOfindByDocId in interface UserDocDAOUserDocDAO.findByDocId(long)public boolean deleteByUserId(long userId)
UserDocDAOdeleteByUserId in interface UserDocDAOCopyright © 2008-2014 Logical Objects. All Rights Reserved.