public abstract class MigrationTask extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Version |
asOfVersion |
protected GlobalContext |
context |
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
MigrationTask(Version asOfVersion) |
| Modifier and Type | Method and Description |
|---|---|
Version |
getAsOfVersion() |
GlobalContext |
getContext() |
abstract void |
runDowngradeScript()
Script to be executed when migrating from the version asOfVersion to a version lower than asOfVersion
|
abstract void |
runUpgradeScript()
Script to be executed when migrating from a version lower than asOfVersion to the version asOfVersion
|
protected void |
setContext(GlobalContext context) |
protected static final org.slf4j.Logger logger
protected GlobalContext context
protected Version asOfVersion
public MigrationTask(Version asOfVersion)
asOfVersion - the version as of which the the task has to be executedpublic GlobalContext getContext()
protected void setContext(GlobalContext context)
public Version getAsOfVersion()
public abstract void runUpgradeScript()
public abstract void runDowngradeScript()
Copyright © 2019. All rights reserved.