|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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<Attachment> com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao com.atlassian.confluence.pages.persistence.dao.hibernate.TransactionalHibernateAttachmentDao
public class TransactionalHibernateAttachmentDao
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
AbstractHibernateAttachmentDao
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao |
---|
AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier, AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator |
Nested classes/interfaces inherited from interface 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 |
Fields inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
---|
cacheFactory |
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
TransactionalHibernateAttachmentDao()
|
Method Summary | |
---|---|
void |
removeAttachmentFromServer(Attachment attachment)
Removes attachment (and all of its versions) |
void |
setDataDao(TransactionalAttachmentDataDao dao)
We override the parent setter here so we are certain we're getting a transactional AttachmentDataDao to work with |
Methods inherited from class com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao |
---|
afterMigrationFrom, findAllVersions, flush, getAttachment, getAttachmentData, getById, getCopier, getDataDao, getInstance, getLastAddedVersionsOf, getLatestAttachment, getLatestVersionsOfAttachments, getMigrator, getPersistentClass, moveAttachment, prepareForMigrationTo, removeAttachment, replaceAttachmentData, saveNewAttachment, saveNewAttachmentVersion |
Methods inherited from class com.atlassian.confluence.core.persistence.hibernate.VersionedHibernateObjectDao |
---|
findAllSorted, findLatestVersionsCount, findLatestVersionsIterator, save, setCacheFactory, updateModificationData |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
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 |
---|
public TransactionalHibernateAttachmentDao()
Method Detail |
---|
public void setDataDao(TransactionalAttachmentDataDao dao)
dao
- public void removeAttachmentFromServer(Attachment attachment)
AttachmentDao
attachment
- the Attachment to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |