Class R40000XWIKI6990DataMigration
- java.lang.Object
-
- com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
-
- com.xpn.xwiki.store.migration.hibernate.R40000XWIKI6990DataMigration
-
- All Implemented Interfaces:
DataMigration
,HibernateDataMigration
@Component @Named("R40000XWIKI6990") @Singleton public class R40000XWIKI6990DataMigration extends AbstractHibernateDataMigration
Migration for XWIKI-6990 Reduce the likelihood of having same (hibernate) document id for different documents. This data migration convert document ID to a new hash algorithm.- Since:
- 4.0M1
- Version:
- $Id: 2c8e0df7a41e34c9602b63fda7c8d725aca27a1f $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager, manager
-
-
Constructor Summary
Constructors Constructor Description R40000XWIKI6990DataMigration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getLiquibaseChangeLog()
XWikiDBVersion
getVersion()
void
hibernateMigrate()
Execute the migration itself.-
Methods inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
getCurrentDBVersion, getName, getPreHibernateLiquibaseChangeLog, getStore, getXWikiContext, migrate, shouldExecute
-
-
-
-
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 classAbstractHibernateDataMigration
- Throws:
DataMigrationException
- on migration error.XWikiException
- on error from the store.
-
getLiquibaseChangeLog
public String getLiquibaseChangeLog() throws DataMigrationException
- Specified by:
getLiquibaseChangeLog
in interfaceHibernateDataMigration
- Overrides:
getLiquibaseChangeLog
in classAbstractHibernateDataMigration
- Returns:
- some liquibase changelogs for refactoring the database after the hibernate schema update has been processed
- Throws:
DataMigrationException
- on error
-
-