public class

TransactionalHibernateAttachmentDao

extends AbstractHibernateAttachmentDao
java.lang.Object
   ↳ org.springframework.dao.support.DaoSupport
     ↳ org.springframework.orm.hibernate.support.HibernateDaoSupport
       ↳ com.atlassian.hibernate.HibernateObjectDao
         ↳ com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao<T extends com.atlassian.core.bean.EntityObject>
           ↳ com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao
             ↳ com.atlassian.confluence.pages.persistence.dao.hibernate.TransactionalHibernateAttachmentDao

Class Overview

Transactional version of the AbstractHibernateAttachmentDao, which removes the Attachment data as the Attachment itself is being removed, since it can be rolled back by the transaction

Summary

[Expand]
Inherited Fields
From class com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao
From class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
From class com.atlassian.hibernate.HibernateObjectDao
From class org.springframework.dao.support.DaoSupport
Public Constructors
TransactionalHibernateAttachmentDao()
Public Methods
void removeAttachmentFromServer(Attachment attachment)
void setDataDao(TransactionalAttachmentDataDao dao)
We override the parent setter here so we are certain we're getting a transactional AttachmentDataDao to work with
[Expand]
Inherited Methods
From class com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao
From class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao
From class com.atlassian.hibernate.HibernateObjectDao
From class org.springframework.orm.hibernate.support.HibernateDaoSupport
From class org.springframework.dao.support.DaoSupport
From class java.lang.Object
From interface bucket.core.persistence.ObjectDao
From interface com.atlassian.confluence.core.persistence.VersionedObjectDao
From interface com.atlassian.confluence.pages.persistence.dao.AttachmentDao
From interface com.atlassian.confluence.pages.persistence.dao.FlushableCachingDao
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public TransactionalHibernateAttachmentDao ()

Public Methods

public void removeAttachmentFromServer (Attachment attachment)

public void setDataDao (TransactionalAttachmentDataDao dao)

We override the parent setter here so we are certain we're getting a transactional AttachmentDataDao to work with