public class HibernateVersionDAO extends HibernatePersistentObjectDAO<Version> implements VersionDAO
DocumentDAOentityClass, log, sessionFactory| Modifier and Type | Method and Description |
|---|---|
List<Version> |
findByDocId(long docId)
Finds all versions of the given document
|
Version |
findByVersion(long docId,
String version)
This method finds a version by the document's ID an the version code.
|
void |
initialize(Version version)
Doesn't do anything by default
|
void |
setStorer(Storer storer) |
boolean |
store(Version version)
This method persists the entity object.
|
void |
updateDigest(Version version)
Updates the version's digest (SHA-1)
|
bulkUpdate, delete, deleteAll, evict, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, flush, getConnection, getCurrentSession, getDbms, getSessionFactory, 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, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSetpublic List<Version> findByDocId(long docId)
VersionDAOfindByDocId in interface VersionDAOdocId - The document's idpublic Version findByVersion(long docId, String version)
VersionDAOfindByVersion in interface VersionDAOdocId - ID of the documentversion - the version codepublic void initialize(Version version)
HibernatePersistentObjectDAOinitialize in interface PersistentObjectDAO<Version>initialize in class HibernatePersistentObjectDAO<Version>version - The entity to be initialisedpublic boolean store(Version version)
PersistentObjectDAOstore in interface VersionDAOstore in interface PersistentObjectDAO<Version>store in class HibernatePersistentObjectDAO<Version>version - entity to be stored.public void updateDigest(Version version)
VersionDAOupdateDigest in interface VersionDAOpublic void setStorer(Storer storer)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.