public class TransactionalHibernateAttachmentDao extends AbstractHibernateAttachmentDao
AbstractHibernateAttachmentDao
AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier, AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator
HibernateObjectDao.Cacheability
AttachmentDao.AttachmentCopier, AttachmentDao.AttachmentMigrator
dataDao
cacheFactory, confluenceUserDao
NON_CACHEABLE
Constructor and Description |
---|
TransactionalHibernateAttachmentDao() |
Modifier and Type | Method and Description |
---|---|
void |
removeAttachmentFromServer(Attachment attachment)
Removes attachment (and all of its versions)
|
protected void |
removeAttachmentVersionFromServer(Attachment attachmentVersionToBeRemoved,
Attachment previousAttachmentVersion) |
void |
setDataDao(TransactionalAttachmentDataDao dao)
We override the parent setter here so we are certain we're getting
a transactional AttachmentDataDao to work with
|
afterMigrationFrom, countLatestVersionsOfAttachments, countLatestVersionsOfAttachmentsWithAnyStatus, findAllVersions, findAllVersions, findLatestVersionIds, findLatestVersionIds, findLatestVersionIdsIterator, findLatestVersionIdsIterator, flush, getAttachment, getAttachmentData, getBackingStorageType, getById, getByIds, getCopier, getDataDao, getInstance, getLastAddedVersionsOf, getLatestAttachment, getLatestVersionsOfAttachments, getLatestVersionsOfAttachments, getLatestVersionsOfAttachmentsForMultipleCeos, getLatestVersionsOfAttachmentsWithAnyStatus, getMigrator, getPersistentClass, getRemappedAttachmentIds, isAttachmentPresent, moveAttachment, overwriteMetaData, prepareForMigrationTo, removeAllAttachmentVersions, removeAttachment, removeAttachmentVersionFromServer, removeMetaData, replaceAttachmentData, saveNewAttachment, saveNewAttachmentVersion, updateAttachment
findAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationData
findAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, index, refresh, reIndex, remove, replicate, save, saveRaw, setIndexer, unIndex, uniqueResult
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findAll, findLatestVersionsIterator
findAll, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRaw
public void setDataDao(TransactionalAttachmentDataDao dao)
dao
- public void removeAttachmentFromServer(Attachment attachment)
AttachmentDao
attachment
- the Attachment to be removedprotected void removeAttachmentVersionFromServer(Attachment attachmentVersionToBeRemoved, Attachment previousAttachmentVersion)
removeAttachmentVersionFromServer
in class AbstractHibernateAttachmentDao
Copyright © 2003–2016 Atlassian. All rights reserved.