public class SST_Insert extends SchemaSpecTask
The optional dupFail attribute is a boolean - if TRUE, the ANT task with throw a build exception if
the inserted rows already exist in the table. If FALSE, a warning will be logged but the task will not fail the
build. The default is TRUE.
The insertCmd is SQL that will appear after "INSERT INTO table ".
| Constructor and Description |
|---|
SST_Insert() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
setDupFail(String df)
Flag to indicate if a duplicate row getting inserted into the DB causes the build to fail or not.
|
void |
setInsertCmd(String i)
The insert SQL to indicate what is to be inserted.
|
void |
setTable(String t)
The name of the table where the data is to be inserted.
|
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 setTable(String t)
t - table namepublic void setInsertCmd(String i)
INSERT INTO
table.i - insert SQLpublic void setDupFail(String df)
df - TRUE or FALSE boolean stringpublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.execute()Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.