public class SQLBuilderBase.AlterTableBuilderBase extends SQLBuilderBase.AbstractStatement implements SQLBuilder.AlterTableBuilder
Modifier and Type | Field and Description |
---|---|
protected java.util.List<SQLBuilder.ColumnDescriptor> |
adds |
protected java.util.List<SQLBuilder.ColumnDescriptor> |
alters
Deprecated.
|
protected java.lang.String |
drop_primary_key_column |
protected java.util.List<java.lang.String> |
drops |
protected java.util.List<<any>> |
operations |
protected java.util.List<<any>> |
renames |
protected SQLBuilderBase |
sqlbuilder |
protected SQLBuilder.TableNameBuilder |
table |
properties
ALTER_COLUMN_ADD_COLUMN, ALTER_COLUMN_ADD_PRIMARY_KEY, ALTER_COLUMN_ALL, ALTER_COLUMN_CREATE_INDEX, ALTER_COLUMN_DROP_COLUMN, ALTER_COLUMN_DROP_INDEX, ALTER_COLUMN_DROP_PRIMARY_KEY, ALTER_COLUMN_GEOMETRY, ALTER_COLUMN_SET_DATA_TYPE, ALTER_COLUMN_SET_DEFAULT, ALTER_COLUMN_SET_NULL
Constructor and Description |
---|
AlterTableBuilderBase(SQLBuilderBase sqlbuilder) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExpressionBuilder.Visitor visitor,
ExpressionBuilder.VisitorFilter filter) |
SQLBuilder.AlterTableBuilder |
add_column(FeatureAttributeDescriptor fad) |
SQLBuilder.AlterTableBuilder |
add_column(java.lang.String columnName,
int type,
int size,
int precision,
int scale,
boolean isPk,
boolean isIndexed,
boolean allowNulls,
boolean isAutomatic,
java.lang.Object defaultValue,
boolean allowIndexDuplicateds) |
SQLBuilder.AlterTableBuilder |
add_geometry_column(java.lang.String columnName,
int type,
int subtype,
IProjection proj,
boolean isIndexed,
boolean allowNulls) |
SQLBuilder.AlterTableBuilder |
add_geometry_column(java.lang.String columnName,
int type,
int subtype,
java.lang.Object srsdbcode,
boolean isIndexed,
boolean allowNulls) |
protected java.util.List<java.lang.String> |
alter_column_add_geometry_constraint_sqls(Formatter<ExpressionBuilder.Value> formatter,
SQLBuilder.ColumnDescriptor column) |
SQLBuilder.AlterTableBuilder |
alter_column(Bitmask operation,
FeatureAttributeDescriptor fad) |
SQLBuilder.AlterTableBuilder |
alter_column(Bitmask operation,
java.lang.String columnName,
int type,
int size,
int precision,
int scale,
boolean isPk,
boolean isIndexed,
boolean allowNulls,
boolean isAutomatic,
java.lang.Object defaultValue,
boolean allowIndexDuplicateds) |
SQLBuilder.AlterTableBuilder |
alter_geometry_column(Bitmask operation,
java.lang.String columnName,
int type,
int subtype,
IProjection proj,
boolean isIndexed,
boolean allowNulls) |
SQLBuilder.AlterTableBuilder |
alter_geometry_column(Bitmask operation,
java.lang.String columnName,
int type,
int subtype,
java.lang.Object srsdbcode,
boolean isIndexed,
boolean allowNulls) |
protected java.util.List<java.lang.String> |
alter_table_add_column_sqls(Formatter<ExpressionBuilder.Value> formatter,
SQLBuilder.ColumnDescriptor column) |
protected java.util.List<java.lang.String> |
alter_table_add_primarykey_sqls(Formatter<ExpressionBuilder.Value> formatter,
SQLBuilder.ColumnDescriptor column) |
protected java.util.List<java.lang.String> |
alter_table_alter_column_rename_sqls(Formatter<ExpressionBuilder.Value> formatter,
java.lang.String oldName,
java.lang.String newName) |
protected java.util.List<java.lang.String> |
alter_table_alter_column_set_data_type_sqls(Formatter<ExpressionBuilder.Value> formatter,
SQLBuilder.ColumnDescriptor column) |
protected java.util.List<java.lang.String> |
alter_table_alter_column_set_default_sqls(Formatter<ExpressionBuilder.Value> formatter,
SQLBuilder.ColumnDescriptor column) |
protected java.util.List<java.lang.String> |
alter_table_alter_column_set_null_sqls(Formatter<ExpressionBuilder.Value> formatter,
SQLBuilder.ColumnDescriptor column) |
protected java.util.List<java.lang.String> |
alter_table_drop_column_sqls(Formatter<ExpressionBuilder.Value> formatter,
java.lang.String columnName) |
protected java.util.List<java.lang.String> |
alter_table_drop_primarykey_sqls(Formatter<ExpressionBuilder.Value> formatter,
SQLBuilder.ColumnDescriptor column) |
protected java.util.List<java.lang.String> |
create_index_sqls(Formatter<ExpressionBuilder.Value> formatter,
SQLBuilder.ColumnDescriptor column) |
SQLBuilder.AlterTableBuilder |
drop_column(java.lang.String columnName) |
protected java.util.List<java.lang.String> |
drop_index_sqls(Formatter<ExpressionBuilder.Value> formatter,
SQLBuilder.ColumnDescriptor column) |
SQLBuilder.AlterTableBuilder |
drop_primary_key(java.lang.String columnName) |
protected java.lang.String |
getConstrainName(java.lang.String constrainType,
java.lang.String columnName) |
java.util.List<<any>> |
getOperations() |
boolean |
isEmpty() |
SQLBuilder.AlterTableBuilder |
rename_column(java.lang.String source,
java.lang.String target) |
SQLBuilder.TableNameBuilder |
table() |
java.lang.String |
toString() |
java.lang.String |
toString(Formatter<ExpressionBuilder.Value> formatter) |
java.util.List<java.lang.String> |
toStrings() |
java.util.List<java.lang.String> |
toStrings(Formatter formatter) |
protected void |
update_or_add_alters(SQLBuilderBase.ColumnDescriptorBase column) |
clone
copyPropertiesFrom, getProperties, getProperty, replace, setProperty
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, copyPropertiesFrom, replace
getProperties, getProperty, setProperty
cloneQuietly, cloneQuietly
protected SQLBuilder.TableNameBuilder table
protected java.util.List<java.lang.String> drops
protected java.util.List<SQLBuilder.ColumnDescriptor> adds
@Deprecated protected java.util.List<SQLBuilder.ColumnDescriptor> alters
protected java.util.List<<any>> operations
protected java.util.List<<any>> renames
protected java.lang.String drop_primary_key_column
protected final SQLBuilderBase sqlbuilder
public AlterTableBuilderBase(SQLBuilderBase sqlbuilder)
public java.util.List<<any>> getOperations()
public boolean isEmpty()
isEmpty
in interface SQLBuilder.AlterTableBuilder
public void accept(ExpressionBuilder.Visitor visitor, ExpressionBuilder.VisitorFilter filter)
accept
in interface ExpressionBuilder.Visitable
accept
in class ExpressionBuilder.AbstractValue
public SQLBuilder.TableNameBuilder table()
table
in interface SQLBuilder.AlterTableBuilder
public SQLBuilder.AlterTableBuilder drop_column(java.lang.String columnName)
drop_column
in interface SQLBuilder.AlterTableBuilder
public SQLBuilder.AlterTableBuilder drop_primary_key(java.lang.String columnName)
drop_primary_key
in interface SQLBuilder.AlterTableBuilder
public SQLBuilder.AlterTableBuilder add_column(FeatureAttributeDescriptor fad)
add_column
in interface SQLBuilder.AlterTableBuilder
public SQLBuilder.AlterTableBuilder add_column(java.lang.String columnName, int type, int size, int precision, int scale, boolean isPk, boolean isIndexed, boolean allowNulls, boolean isAutomatic, java.lang.Object defaultValue, boolean allowIndexDuplicateds)
add_column
in interface SQLBuilder.AlterTableBuilder
public SQLBuilder.AlterTableBuilder add_geometry_column(java.lang.String columnName, int type, int subtype, IProjection proj, boolean isIndexed, boolean allowNulls)
add_geometry_column
in interface SQLBuilder.AlterTableBuilder
public SQLBuilder.AlterTableBuilder add_geometry_column(java.lang.String columnName, int type, int subtype, java.lang.Object srsdbcode, boolean isIndexed, boolean allowNulls)
add_geometry_column
in interface SQLBuilder.AlterTableBuilder
protected void update_or_add_alters(SQLBuilderBase.ColumnDescriptorBase column)
public SQLBuilder.AlterTableBuilder alter_column(Bitmask operation, FeatureAttributeDescriptor fad)
alter_column
in interface SQLBuilder.AlterTableBuilder
public SQLBuilder.AlterTableBuilder alter_column(Bitmask operation, java.lang.String columnName, int type, int size, int precision, int scale, boolean isPk, boolean isIndexed, boolean allowNulls, boolean isAutomatic, java.lang.Object defaultValue, boolean allowIndexDuplicateds)
alter_column
in interface SQLBuilder.AlterTableBuilder
public SQLBuilder.AlterTableBuilder alter_geometry_column(Bitmask operation, java.lang.String columnName, int type, int subtype, IProjection proj, boolean isIndexed, boolean allowNulls)
alter_geometry_column
in interface SQLBuilder.AlterTableBuilder
public SQLBuilder.AlterTableBuilder alter_geometry_column(Bitmask operation, java.lang.String columnName, int type, int subtype, java.lang.Object srsdbcode, boolean isIndexed, boolean allowNulls)
alter_geometry_column
in interface SQLBuilder.AlterTableBuilder
public SQLBuilder.AlterTableBuilder rename_column(java.lang.String source, java.lang.String target)
rename_column
in interface SQLBuilder.AlterTableBuilder
protected java.lang.String getConstrainName(java.lang.String constrainType, java.lang.String columnName)
protected java.util.List<java.lang.String> alter_table_add_primarykey_sqls(Formatter<ExpressionBuilder.Value> formatter, SQLBuilder.ColumnDescriptor column)
protected java.util.List<java.lang.String> alter_table_drop_primarykey_sqls(Formatter<ExpressionBuilder.Value> formatter, SQLBuilder.ColumnDescriptor column)
protected java.util.List<java.lang.String> create_index_sqls(Formatter<ExpressionBuilder.Value> formatter, SQLBuilder.ColumnDescriptor column)
protected java.util.List<java.lang.String> drop_index_sqls(Formatter<ExpressionBuilder.Value> formatter, SQLBuilder.ColumnDescriptor column)
protected java.util.List<java.lang.String> alter_table_alter_column_set_data_type_sqls(Formatter<ExpressionBuilder.Value> formatter, SQLBuilder.ColumnDescriptor column)
protected java.util.List<java.lang.String> alter_table_alter_column_set_default_sqls(Formatter<ExpressionBuilder.Value> formatter, SQLBuilder.ColumnDescriptor column)
protected java.util.List<java.lang.String> alter_table_alter_column_set_null_sqls(Formatter<ExpressionBuilder.Value> formatter, SQLBuilder.ColumnDescriptor column)
protected java.util.List<java.lang.String> alter_table_drop_column_sqls(Formatter<ExpressionBuilder.Value> formatter, java.lang.String columnName)
protected java.util.List<java.lang.String> alter_table_add_column_sqls(Formatter<ExpressionBuilder.Value> formatter, SQLBuilder.ColumnDescriptor column)
protected java.util.List<java.lang.String> alter_table_alter_column_rename_sqls(Formatter<ExpressionBuilder.Value> formatter, java.lang.String oldName, java.lang.String newName)
protected java.util.List<java.lang.String> alter_column_add_geometry_constraint_sqls(Formatter<ExpressionBuilder.Value> formatter, SQLBuilder.ColumnDescriptor column)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(Formatter<ExpressionBuilder.Value> formatter)
toString
in interface ExpressionBuilder.Value
public java.util.List<java.lang.String> toStrings()
toStrings
in interface SQLBuilder.AlterTableBuilder
public java.util.List<java.lang.String> toStrings(Formatter formatter)
toStrings
in interface SQLBuilder.AlterTableBuilder