com.atlassian.confluence.pages.persistence.dao.hibernate
Class AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator
java.lang.Object
com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier
com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator
- All Implemented Interfaces:
- AttachmentDao.AttachmentCopier, AttachmentDao.AttachmentMigrator
- Enclosing class:
- AbstractHibernateAttachmentDao
public class AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator
- extends AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier
- implements AttachmentDao.AttachmentMigrator
This attachment migrator will migrate 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.
Method Summary |
void |
migrate()
Perform the migration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator
protected AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator(AbstractHibernateAttachmentDao destinationDao)
migrate
public void migrate()
- Description copied from interface:
AttachmentDao.AttachmentMigrator
- Perform the migration
- Specified by:
migrate
in interface AttachmentDao.AttachmentMigrator