public class HibernateVersionDAO extends HibernatePersistentObjectDAO<Version> implements VersionDAO
DocumentDAO
entityClass, 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, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bulkUpdate, delete, deleteAll, findAll, findAllIds, findById, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForRowSet
public List<Version> findByDocId(long docId)
VersionDAO
findByDocId
in interface VersionDAO
docId
- The document's idpublic Version findByVersion(long docId, String version)
VersionDAO
findByVersion
in interface VersionDAO
docId
- ID of the documentversion
- the version codepublic void initialize(Version version)
HibernatePersistentObjectDAO
initialize
in interface PersistentObjectDAO<Version>
initialize
in class HibernatePersistentObjectDAO<Version>
version
- The entity to be initialisedpublic boolean store(Version version)
PersistentObjectDAO
store
in interface VersionDAO
store
in interface PersistentObjectDAO<Version>
store
in class HibernatePersistentObjectDAO<Version>
version
- entity to be stored.public void updateDigest(Version version)
VersionDAO
updateDigest
in interface VersionDAO
public void setStorer(Storer storer)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.