public class SchemaSpec extends org.apache.tools.ant.Task implements org.apache.tools.ant.TaskContainer, Comparable
version. Each SchemaSpec contains child tasks that define the
actual work that needs to get done to perform this upgrade step.| Constructor and Description |
|---|
SchemaSpec(DBUpgrader parent)
Creates a new
SchemaSpec object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(org.apache.tools.ant.Task schema_spec_task)
Adds the given child task to the list of tasks.
|
int |
compareTo(Object o)
Compares the versions.
|
void |
execute()
Executes each task defined in this schema spec.
|
SchemaVersion |
getVersion()
Returns the schema version of this object.
|
void |
initialize(Connection db_conn,
DBUpgrader db_upgrader)
Initializes this object with a database connection and a DBUpgrade task object.
|
void |
setVersion(String version)
This is the version to which this upgrade step takes the schema to.
|
String |
toString() |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic SchemaSpec(DBUpgrader parent)
SchemaSpec object.parent - public void setVersion(String version)
version - public SchemaVersion getVersion() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if the version string was invalidpublic void initialize(Connection db_conn, DBUpgrader db_upgrader)
db_conn - db_upgrader - public void addTask(org.apache.tools.ant.Task schema_spec_task)
SchemaSpecTask.addTask in interface org.apache.tools.ant.TaskContainerschema_spec_task - org.apache.tools.ant.BuildException - if the task is not of the expected typepublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionpublic String toString()
toString in class ObjectObject.toString()public int compareTo(Object o)
compareTo in interface ComparableComparable.compareTo(java.lang.Object)Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.