com.xpn.xwiki.store.migration.hibernate
Class LegacyDataMigration

java.lang.Object
  extended by com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
      extended by com.xpn.xwiki.store.migration.hibernate.LegacyDataMigration
All Implemented Interfaces:
DataMigration, HibernateDataMigration

@Component
@Named(value="Legacy")
@Singleton
public class LegacyDataMigration
extends AbstractHibernateDataMigration

Migration for XWIKI4396: Duplicate document ID. This dataMigration change document ID to use the new improved hash algorithm.

Since:
3.4M1
Version:
$Id: c573918e591636171c329012aa0e0700842b27c5 $

Field Summary
 
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager
 
Constructor Summary
LegacyDataMigration()
           
 
Method Summary
 String getDescription()
           
 XWikiDBVersion getVersion()
           
 void hibernateMigrate()
          Execute the migration itself.
 
Methods inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
getLiquibaseChangeLog, getName, getPreHibernateLiquibaseChangeLog, getStore, getXWikiContext, migrate, shouldExecute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyDataMigration

public LegacyDataMigration()
Method Detail

getDescription

public String getDescription()
Returns:
a description of what the data migration does

getVersion

public XWikiDBVersion getVersion()
Returns:
data version which need migration. before you commit stuff which needs migration, you need write data migration with version = current release number (i.e 32000 for release 3.2).

hibernateMigrate

public void hibernateMigrate()
                      throws DataMigrationException,
                             XWikiException
Description copied from class: AbstractHibernateDataMigration
Execute the migration itself.

Specified by:
hibernateMigrate in class AbstractHibernateDataMigration
Throws:
DataMigrationException - on migration error.
XWikiException - on error from the store.


Copyright © 2004–2014 XWiki. All rights reserved.