class RenameConstantAction extends DDLSingleTableConstantAction
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
fullTableName |
private java.lang.String |
newObjectName |
private java.lang.String |
newTableName |
private java.lang.String |
oldObjectName |
private int |
renamingWhat |
private UUID |
schemaId |
private SchemaDescriptor |
sd |
private java.lang.String |
tableName |
private boolean |
usedAlterTable |
tableId
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
Constructor and Description |
---|
RenameConstantAction(java.lang.String fullTableName,
java.lang.String tableName,
java.lang.String oldObjectName,
java.lang.String newObjectName,
SchemaDescriptor sd,
UUID tableId,
boolean usedAlterTable,
int renamingWhat)
Make the ConstantAction for a RENAME TABLE/COLUMN/INDEX statement.
|
Modifier and Type | Method and Description |
---|---|
private void |
execGutsRenameColumn(TableDescriptor td,
Activation activation) |
private void |
execGutsRenameIndex(TableDescriptor td,
Activation activation) |
private void |
execGutsRenameTable(TableDescriptor td,
Activation activation) |
void |
executeConstantAction(Activation activation)
The guts of the Execution-time logic for RENAME TABLE/COLUMN/INDEX.
|
java.lang.String |
getTableName() |
java.lang.String |
toString() |
dropConglomerate, dropConglomerate, dropConstraint, dropConstraint, dropConstraint, executeConglomReplacement, getConglomReplacementAction, recreateUniqueConstraintBackingIndexAsUniqueWhenNotNull
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
private java.lang.String fullTableName
private java.lang.String tableName
private java.lang.String newTableName
private java.lang.String oldObjectName
private java.lang.String newObjectName
private UUID schemaId
private SchemaDescriptor sd
private boolean usedAlterTable
private int renamingWhat
public RenameConstantAction(java.lang.String fullTableName, java.lang.String tableName, java.lang.String oldObjectName, java.lang.String newObjectName, SchemaDescriptor sd, UUID tableId, boolean usedAlterTable, int renamingWhat)
fullTableName
- Fully qualified table nametableName
- Table name.oldObjectName
- This is either the name of column/index in case
of rename column/index. For rename table, this is null.newObjectName
- This is new name for table/column/indexsd
- Schema that table lives in.tableId
- UUID for tableusedAlterTable
- True-Used Alter Table, False-Used Rename.
For rename index, this will always be false because
there is no alter table command to rename indexrenamingWhat
- Rename a 1 - table, 2 - column, 3 - indexpublic java.lang.String toString()
toString
in class java.lang.Object
public void executeConstantAction(Activation activation) throws StandardException
activation
- The execution environment for this constant action.StandardException
- Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
private void execGutsRenameTable(TableDescriptor td, Activation activation) throws StandardException
StandardException
private void execGutsRenameColumn(TableDescriptor td, Activation activation) throws StandardException
StandardException
private void execGutsRenameIndex(TableDescriptor td, Activation activation) throws StandardException
StandardException
public java.lang.String getTableName()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.