Class AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier

java.lang.Object
com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier
All Implemented Interfaces:
AttachmentDao.AttachmentCopier
Direct Known Subclasses:
AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator
Enclosing class:
AbstractHibernateAttachmentDao

public class AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier extends AbstractAttachmentCopier implements AttachmentDao.AttachmentCopier
This attachment copier will copy attachment streams from the current instance of AbstractHibernateAttachmentDao to another.

Since the store for the metadata is the same (the database), we can safely shift the data from the different AttachmentDataDao implementations without having to update the metadata itself.