@Component @Named(value="R6079XWIKI1878") @Singleton public class R6079XWIKI1878DataMigration extends AbstractHibernateDataMigration
componentManager, manager| Constructor and Description |
|---|
R6079XWIKI1878DataMigration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
XWikiDBVersion |
getVersion() |
void |
hibernateMigrate()
Execute the migration itself.
|
boolean |
shouldExecute(XWikiDBVersion startupVersion) |
getCurrentDBVersion, getLiquibaseChangeLog, getName, getPreHibernateLiquibaseChangeLog, getStore, getXWikiContext, migratepublic String getDescription()
public XWikiDBVersion getVersion()
public boolean shouldExecute(XWikiDBVersion startupVersion)
shouldExecute in interface DataMigrationshouldExecute in class AbstractHibernateDataMigrationstartupVersion - the database version when the migration process starts (before any dataMigration is
applied). This is useful for data migration which need to run only when the database is in a certain
version.public void hibernateMigrate()
throws DataMigrationException,
XWikiException
AbstractHibernateDataMigrationhibernateMigrate in class AbstractHibernateDataMigrationDataMigrationException - on migration error.XWikiException - on error from the store.Copyright © 2004–2022 XWiki. All rights reserved.