Class RenameConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
org.apache.derby.impl.sql.execute.RenameConstantAction
- All Implemented Interfaces:
ConstantAction
This class describes actions that are ALWAYS performed for a
RENAME TABLE/COLUMN/INDEX Statement at Execution time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Stringprivate Stringprivate intprivate UUIDprivate SchemaDescriptorprivate Stringprivate booleanFields inherited from class DDLSingleTableConstantAction
tableIdFields inherited from interface ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT -
Constructor Summary
ConstructorsConstructorDescriptionRenameConstantAction(String fullTableName, String tableName, String oldObjectName, String newObjectName, SchemaDescriptor sd, UUID tableId, boolean usedAlterTable, int renamingWhat) Make the ConstantAction for a RENAME TABLE/COLUMN/INDEX statement. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidexecGutsRenameColumn(TableDescriptor td, Activation activation) private voidexecGutsRenameIndex(TableDescriptor td, Activation activation) private voidexecGutsRenameTable(TableDescriptor td, Activation activation) voidexecuteConstantAction(Activation activation) The guts of the Execution-time logic for RENAME TABLE/COLUMN/INDEX.toString()Methods inherited from class DDLSingleTableConstantAction
dropConglomerate, dropConglomerate, dropConstraint, dropConstraint, dropConstraint, executeConglomReplacement, getConglomReplacementAction, recreateUniqueConstraintBackingIndexAsUniqueWhenNotNull
-
Field Details
-
fullTableName
-
tableName
-
newTableName
-
oldObjectName
-
newObjectName
-
schemaId
-
sd
-
usedAlterTable
private boolean usedAlterTable -
renamingWhat
private int renamingWhat
-
-
Constructor Details
-
RenameConstantAction
public RenameConstantAction(String fullTableName, String tableName, String oldObjectName, String newObjectName, SchemaDescriptor sd, UUID tableId, boolean usedAlterTable, int renamingWhat) Make the ConstantAction for a RENAME TABLE/COLUMN/INDEX statement.- Parameters:
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 - index
-
-
Method Details
-
toString
-
executeConstantAction
The guts of the Execution-time logic for RENAME TABLE/COLUMN/INDEX.- Parameters:
activation- The execution environment for this constant action.- Throws:
StandardException- Thrown on failure- See Also:
-
execGutsRenameTable
private void execGutsRenameTable(TableDescriptor td, Activation activation) throws StandardException - Throws:
StandardException
-
execGutsRenameColumn
private void execGutsRenameColumn(TableDescriptor td, Activation activation) throws StandardException - Throws:
StandardException
-
execGutsRenameIndex
private void execGutsRenameIndex(TableDescriptor td, Activation activation) throws StandardException - Throws:
StandardException
-
getTableName
-