public class SST_DirectSQL.Statement
extends org.apache.tools.ant.Task
Constructor and Description |
---|
SST_DirectSQL.Statement() |
Modifier and Type | Method and Description |
---|---|
void |
addText(String sql)
Defines the actual SQL to be executed
|
void |
execute() |
void |
init(Connection conn,
DatabaseType db_type)
Initializes this statement task with a database connection and database type.
|
void |
setDesc(String s)
A simple description that is logged when executing this statement.
|
void |
setTargetDBVendor(String vendor)
Sets the vendor name of the target DB where this SQL should run.
|
void |
setTargetDBVersion(String version)
Sets the version string of the target DB where this SQL should run.
|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void init(Connection conn, DatabaseType db_type)
conn
- db_type
- public void setDesc(String s)
s
- describes what the SQL is attempting to dopublic void setTargetDBVendor(String vendor)
vendor
- database vendorpublic void setTargetDBVersion(String version)
version
- database versionpublic void addText(String sql)
sql
- SQL string to executepublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Task.execute()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.