public class SST_JavaTask extends SchemaSpecTask
DatabaseUpgradeTask interface, which will pass the active Connection and DatabaseType
objects used by the main upgrader to it. Authors of JavaTasks are encouraged to use the helper methods provided by
the DatabaseType object, which will help keep the implementation vendor agnostic with respect to the set of
databases supported by DBUpgrader at the time it was written.
Ant task to invoke an external JavaTask, which can perform arbitrarily DDL and DML against the database. This task
accepts one required attribute:
| Constructor and Description |
|---|
SST_JavaTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Launches the
DatabaseUpgradeTask defined by the className attribute, passing the Connection and
DatabaseType from the main DBUpgrader. |
void |
setClassName(String className)
Sets the name of the class that implements the
DatabaseUpgradeTask interface. |
getConnection, getDatabaseType, getDBSpecificTypeName, getIgnoreError, getNewConnection, getTargetDBVendor, getTargetDBVersion, initialize, isDBTargeted, isIgnoreError, setIgnoreError, setTargetDBVendor, setTargetDBVersion, translateSqlTypegetDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setClassName(String className)
DatabaseUpgradeTask interface. If the name is not
package-prefixed, the default "org.rhq.core.db.upgrade" will be assumed.className - public void execute()
throws org.apache.tools.ant.BuildException
DatabaseUpgradeTask defined by the className attribute, passing the Connection and
DatabaseType from the main DBUpgrader.execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.execute()Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.