@Component @Named(value="R130200001XWIKI18429") @Singleton public class R130200001XWIKI18429DataMigration extends AbstractHibernateDataMigration
componentManager, manager
Constructor and Description |
---|
R130200001XWIKI18429DataMigration() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
String |
getPreHibernateLiquibaseChangeLog() |
XWikiDBVersion |
getVersion() |
protected void |
hibernateMigrate()
Execute the migration itself.
|
boolean |
shouldExecute(XWikiDBVersion startupVersion) |
getCurrentDBVersion, getLiquibaseChangeLog, getName, getStore, getXWikiContext, migrate
public String getDescription()
public XWikiDBVersion getVersion()
protected void hibernateMigrate() throws DataMigrationException, XWikiException
AbstractHibernateDataMigration
hibernateMigrate
in class AbstractHibernateDataMigration
DataMigrationException
- on migration error.XWikiException
- on error from the store.public boolean shouldExecute(XWikiDBVersion startupVersion)
shouldExecute
in interface DataMigration
shouldExecute
in class AbstractHibernateDataMigration
startupVersion
- 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 String getPreHibernateLiquibaseChangeLog() throws DataMigrationException
getPreHibernateLiquibaseChangeLog
in interface HibernateDataMigration
getPreHibernateLiquibaseChangeLog
in class AbstractHibernateDataMigration
DataMigrationException
- on errorCopyright © 2004–2021 XWiki. All rights reserved.