public class SST_DirectSQL extends SchemaSpecTask
<statement desc="Direct SQL only to execute if the database is Postgres (any version)"
targetDBVendor="postgresql">
INSERT INTO foo VALUES(true)
</statement>
<statement desc="Direct SQL only to execute if the database is Oracle10"
targetDBVendor="oracle"
targetDBVersion="10">
INSERT INTO foo VALUES(1)
</statement>
If you specify a target DB version, you must specify a target DB vendor.| Modifier and Type | Class and Description |
|---|---|
class |
SST_DirectSQL.Statement
An individual statement task that is executed as part of the direct-sql schema spec task.
|
| Constructor and Description |
|---|
SST_DirectSQL() |
| Modifier and Type | Method and Description |
|---|---|
SST_DirectSQL.Statement |
createStatement()
Creates a new statement child task.
|
void |
execute()
Executes each statement defined in this direct-sql task.
|
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 execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.execute()public SST_DirectSQL.Statement createStatement()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.