Package step.migration
Class MigrationTask
- java.lang.Object
-
- step.migration.MigrationTask
-
- Direct Known Subclasses:
MigrateArtefactsToPlans
,MigrateAssertNegation
,MigrateFunctions
,RemoveLocalFunctions
,RenameArtefactType
,ScreenTemplateArtefactTableMigrationTask
,ScreenTemplateMigrationTask
,SetSchedulerTaskAttributes
public abstract class MigrationTask extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Version
asOfVersion
protected GlobalContext
context
protected static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description MigrationTask(Version asOfVersion)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Version
getAsOfVersion()
GlobalContext
getContext()
abstract void
runDowngradeScript()
Script to be executed when migrating from the version asOfVersion to a version lower than asOfVersionabstract void
runUpgradeScript()
Script to be executed when migrating from a version lower than asOfVersion to the version asOfVersionprotected void
setContext(GlobalContext context)
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
context
protected GlobalContext context
-
asOfVersion
protected Version asOfVersion
-
-
Constructor Detail
-
MigrationTask
public MigrationTask(Version asOfVersion)
- Parameters:
asOfVersion
- the version as of which the the task has to be executed
-
-
Method Detail
-
getContext
public GlobalContext getContext()
-
setContext
protected void setContext(GlobalContext context)
-
getAsOfVersion
public Version getAsOfVersion()
-
runUpgradeScript
public abstract void runUpgradeScript()
Script to be executed when migrating from a version lower than asOfVersion to the version asOfVersion
-
runDowngradeScript
public abstract void runDowngradeScript()
Script to be executed when migrating from the version asOfVersion to a version lower than asOfVersion
-
-