public class

AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator

extends AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier
implements AttachmentDao.AttachmentMigrator
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

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier
From class com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
Protected Constructors
AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator(AbstractHibernateAttachmentDao destinationDao)
Public Methods
void migrate()
Perform the migration
[Expand]
Inherited Methods
From class com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.IntraHibernateAttachmentCopier
From class com.atlassian.confluence.pages.persistence.dao.AbstractAttachmentCopier
From class java.lang.Object
From interface com.atlassian.confluence.pages.persistence.dao.AttachmentDao.AttachmentCopier
From interface com.atlassian.confluence.pages.persistence.dao.AttachmentDao.AttachmentMigrator

Protected Constructors

protected AbstractHibernateAttachmentDao.IntraHibernateAttachmentMigrator (AbstractHibernateAttachmentDao destinationDao)

Public Methods

public void migrate ()

Perform the migration