public interface Task
| Modifier and Type | Method and Description |
|---|---|
String |
getComment() |
String |
getIdentifier()
This String is used to identify a particular task.
|
Target |
getTarget()
May return null of this Task is run for all targets.
|
Version |
getVersion()
returns the version this task belongs to
|
boolean |
isRun(Target target,
Version version,
boolean hasAlreadyRun)
The implemetation of this method decides if this version is to be run or not.
|
boolean |
isSchemaChange()
Schema changes are sort to run before any data change.
|
boolean |
runTask(Connection con) |
boolean isRun(Target target, Version version, boolean hasAlreadyRun)
target - the target that has been specified. Is often null.version - the version of the schema the database is to be upgraded tohasAlreadyRun - true if this task has already been run, false if it hasn't.Version getVersion()
boolean runTask(Connection con) throws SQLException
SQLException - if there was a problem executing.String getComment()
String getIdentifier()
boolean isSchemaChange()
Target getTarget()
Copyright © 2015. All rights reserved.