public class SST_AlterColumn extends SchemaSpecTask
true, the column can be NULL; otherwise it is NOT NULL)true, the table will be re-indexed| Constructor and Description |
|---|
SST_AlterColumn() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
void |
setColumn(String c)
Sets the name of the column that is to be altered.
|
void |
setColumnType(String ct)
Sets the column's new generic column type.
|
void |
setDefault(String d)
Sets the new default value of the column.
|
void |
setNullable(String n)
Sets the new nullable setting for the column - if true it can be null, if false it cannot.
|
void |
setPrecision(String p)
Sets the column's new precision.
|
void |
setReindex(String r)
Sets the reindex flag - this is a boolean string, "true" or "false".
|
void |
setTable(String t)
Sets the table name whose column is to be altered.
|
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 setColumn(String c)
c - column namepublic void setColumnType(String ct)
ct - generic column typepublic void setPrecision(String p)
p - precisionpublic void setNullable(String n)
n - nullable boolean stringIllegalArgumentException - if boolean string is neither true nor falsepublic void setDefault(String d)
d - default valuepublic void setReindex(String r)
r - reindex flagIllegalArgumentException - if boolean string is neither true nor falsepublic 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.