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

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

@Component
@Named(value="R15428XWIKI2977")
@Singleton
public class R15428XWIKI2977DataMigration
extends AbstractHibernateDataMigration

Migration for XWIKI2977: Add a Globally Unique Identifier (GUID) to objects. This data migration adds GUIDs to existing objects.

Version:
$Id: 6fcc4c4f54f341ccb45d0df1ce2b8b6b708dcd14 $

Field Summary
 
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager
 
Constructor Summary
R15428XWIKI2977DataMigration()
           
 
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

R15428XWIKI2977DataMigration

public R15428XWIKI2977DataMigration()
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.