com.atlassian.confluence.core.persistence.hibernate
Class VersionedHibernateObjectDao

java.lang.Object
  extended byorg.springframework.orm.hibernate.support.HibernateDaoSupport
      extended bycom.atlassian.hibernate.HibernateObjectDao
          extended bybucket.core.persistence.hibernate.CachableHibernateObjectDao
              extended bycom.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, ObjectDao, VersionedObjectDao
Direct Known Subclasses:
AbstractHibernateAttachmentDao, ConfluenceHibernateObjectDao, ContentEntityObjectHibernateDao, ContentPermissionHibernateDao, GenericHibernateVersionedObjectDao, HibernateSpacePermissionDao

public abstract class VersionedHibernateObjectDao
extends CachableHibernateObjectDao
implements VersionedObjectDao


Field Summary
static org.apache.log4j.Category log
           
 
Fields inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao
cacheManager
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
VersionedHibernateObjectDao()
           
 
Method Summary
 List findAllSorted(String sortField)
           
 long findLatestVersionsCount()
          Returns the number of results for the latest versions of the current persistent class.
 Iterator findLatestVersionsIterator()
          Returns an iterator for the latest versions of the current persistent class.
 void save(EntityObject objectToSave, EntityObject previousVersion)
           
protected  void updateModificationData(EntityObject objectToSave)
           
 
Methods inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao
setCacheManager
 
Methods inherited from class com.atlassian.hibernate.HibernateObjectDao
findAll, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, getPersistentClass, refresh, remove, replicate, save, saveRaw
 

Field Detail

log

public static final org.apache.log4j.Category log
Constructor Detail

VersionedHibernateObjectDao

public VersionedHibernateObjectDao()
Method Detail

findLatestVersionsIterator

public Iterator findLatestVersionsIterator()
Description copied from interface: VersionedObjectDao
Returns an iterator for the latest versions of the current persistent class.

Specified by:
findLatestVersionsIterator in interface VersionedObjectDao
Returns:
Iterator

findLatestVersionsCount

public long findLatestVersionsCount()
Description copied from interface: VersionedObjectDao
Returns the number of results for the latest versions of the current persistent class.

Specified by:
findLatestVersionsCount in interface VersionedObjectDao
Returns:
a long representing the number of results

findAllSorted

public List findAllSorted(String sortField)
Specified by:
findAllSorted in interface ObjectDao

save

public void save(EntityObject objectToSave,
                 EntityObject previousVersion)
Specified by:
save in interface VersionedObjectDao

updateModificationData

protected void updateModificationData(EntityObject objectToSave)


Confluence is developed by Atlassian.