public class TransactionalHibernateAttachmentDao extends AbstractHibernateAttachmentDao
AbstractHibernateAttachmentDaoAbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier, AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigratorHibernateObjectDao.CacheabilityAttachmentDao.AttachmentCopier, AttachmentDao.AttachmentMigratordataDaocacheFactory, confluenceUserDao| Constructor and Description | 
|---|
| TransactionalHibernateAttachmentDao() | 
| Modifier and Type | Method and Description | 
|---|---|
| List<Attachment> | removeAllVersionsFromServer(Attachment attachment)Removes all versions of an attachment | 
| 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, countLatestVersionsOfAttachmentsOnPageSince, countLatestVersionsOfAttachmentsWithAnyStatus, findAllVersions, findAllVersions, findLatestVersionIds, findLatestVersionIds, findLatestVersionIdsIterator, findLatestVersionIdsIterator, flush, getAttachment, getAttachmentData, getAttachmentData, getAttachmentStatistics, getBackingStorageType, getById, getByIds, getCopier, getDataDao, getInstance, getLastAddedVersionsOf, getLatestAttachment, getLatestVersionsOfAttachments, getLatestVersionsOfAttachments, getLatestVersionsOfAttachmentsForMultipleCeos, getLatestVersionsOfAttachmentsWithAnyStatus, getLatestVersionsOfAttachmentsWithAnyStatusForContainers, getMigrator, getPersistentClass, getRemappedAttachmentIds, isAttachmentPresent, moveAttachment, overwriteMetaData, prepareForMigrationTo, removeAllAttachmentVersions, removeAttachment, removeAttachmentVersionFromServer, removeMetaData, replaceAttachmentData, saveNewAttachment, saveNewAttachmentVersion, updateAttachmentfindAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, saveEntity, setCacheFactory, setConfluenceUserDao, updateEntityModificationData, updateModificationDataapplyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findByClassIdsFiltered, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getByClassId, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, indexEntity, refresh, refreshEntity, reIndex, reIndexEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntity, setEventPublisher, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, unIndexEntity, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilteredLatestVersionsOfAttachmentsfindAll, findLatestVersionsIteratorfindAll, findAllSorted, findByClassIds, findByClassIdsFiltered, refresh, refreshEntity, remove, removeEntity, replicate, replicateEntity, save, saveEntity, saveRaw, saveRawEntitypublic void setDataDao(TransactionalAttachmentDataDao dao)
dao - public void removeAttachmentFromServer(Attachment attachment)
AttachmentDaoattachment - the Attachment to be removedpublic List<Attachment> removeAllVersionsFromServer(Attachment attachment)
AttachmentDaoInternalattachment - the Attachment to be removedprotected void removeAttachmentVersionFromServer(Attachment attachmentVersionToBeRemoved, Attachment previousAttachmentVersion)
removeAttachmentVersionFromServer in class AbstractHibernateAttachmentDaoCopyright © 2003–2022 Atlassian. All rights reserved.