com.atlassian.confluence.pages.persistence.dao.hibernate
Class NonTransactionalHibernateAttachmentDao

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
                  extended bycom.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao
                      extended bycom.atlassian.confluence.pages.persistence.dao.hibernate.NonTransactionalHibernateAttachmentDao
All Implemented Interfaces:
AttachmentDao, CachingAttachmentDao, org.springframework.beans.factory.InitializingBean, ObjectDao, VersionedObjectDao

public class NonTransactionalHibernateAttachmentDao
extends AbstractHibernateAttachmentDao

Non-transactional version of the AbstractHibernateAttachmentDao, which removes all attachment data from the data store after removing the attachments from the database.

See Also:
AbstractHibernateAttachmentDao

Nested Class Summary
 
Nested classes inherited from class com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao
AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier, AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator
 
Nested classes inherited from class com.atlassian.confluence.pages.persistence.dao.AttachmentDao
AttachmentDao.AttachmentCopier, AttachmentDao.AttachmentMigrator
 
Field Summary
 
Fields inherited from class com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao
dataDao, ONE_DAY
 
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
log
 
Fields inherited from class bucket.core.persistence.hibernate.CachableHibernateObjectDao
cacheManager
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
NonTransactionalHibernateAttachmentDao()
           
 
Method Summary
 void removeAttachmentFromServer(Attachment attachment)
          Removes attachment (and all of its versions)
 void setDataDao(NonTransactionalAttachmentDataDao dao)
           
 
Methods inherited from class com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao
afterMigrationFrom, findAllVersions, flush, getAttachmentByQuery, getAttachmentData, getCopier, getInstance, getLatestVersionsOfAttachments, getMigrator, getPersistentClass, moveAttachment, prepareForMigrationTo, removeAttachment, replaceAttachmentData, saveNewAttachment, saveNewAttachmentVersion
 
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, updateModificationData
 
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 com.atlassian.confluence.pages.persistence.dao.AttachmentDao
findAll, findLatestVersionsIterator
 
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, refresh, remove, replicate, save, saveRaw
 

Constructor Detail

NonTransactionalHibernateAttachmentDao

public NonTransactionalHibernateAttachmentDao()
Method Detail

setDataDao

public void setDataDao(NonTransactionalAttachmentDataDao dao)

removeAttachmentFromServer

public void removeAttachmentFromServer(Attachment attachment)
Description copied from interface: AttachmentDao
Removes attachment (and all of its versions)

Parameters:
attachment - the Attachment to be removed


Confluence is developed by Atlassian.