Class DropTableConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
org.apache.derby.impl.sql.execute.DropTableConstantAction
- All Implemented Interfaces:
ConstantAction
This class describes actions that are ALWAYS performed for a
DROP TABLE Statement at Execution time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final long
private final String
private final SchemaDescriptor
private final String
Fields inherited from class org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
tableId
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
Constructor Summary
ConstructorsConstructorDescriptionDropTableConstantAction
(String fullTableName, String tableName, SchemaDescriptor sd, long conglomerateNumber, UUID tableId, int behavior) Make the ConstantAction for a DROP TABLE statement. -
Method Summary
Modifier and TypeMethodDescriptionprivate void
dropAllConstraintDescriptors
(TableDescriptor td, Activation activation) static void
dropIdentitySequence
(DataDictionary dataDictionary, TableDescriptor tableDescriptor, Activation activation) Drop the sequence generator backing an identity columnvoid
executeConstantAction
(Activation activation) This is the guts of the Execution-time logic for DROP TABLE.toString()
Methods inherited from class org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
dropConglomerate, dropConglomerate, dropConstraint, dropConstraint, dropConstraint, executeConglomReplacement, getConglomReplacementAction, recreateUniqueConstraintBackingIndexAsUniqueWhenNotNull
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
-
Field Details
-
conglomerateNumber
private final long conglomerateNumber -
fullTableName
-
tableName
-
sd
-
cascade
private final boolean cascade
-
-
Constructor Details
-
DropTableConstantAction
DropTableConstantAction(String fullTableName, String tableName, SchemaDescriptor sd, long conglomerateNumber, UUID tableId, int behavior) Make the ConstantAction for a DROP TABLE statement.- Parameters:
fullTableName
- Fully qualified table nametableName
- Table name.sd
- Schema that table lives in.conglomerateNumber
- Conglomerate number for heaptableId
- UUID for tablebehavior
- drop behavior: RESTRICT, CASCADE or default
-
-
Method Details
-
toString
-
executeConstantAction
This is the guts of the Execution-time logic for DROP TABLE.- Parameters:
activation
- The execution environment for this constant action.- Throws:
StandardException
- Thrown on failure- See Also:
-
dropIdentitySequence
public static void dropIdentitySequence(DataDictionary dataDictionary, TableDescriptor tableDescriptor, Activation activation) throws StandardException Drop the sequence generator backing an identity column- Throws:
StandardException
-
dropAllConstraintDescriptors
private void dropAllConstraintDescriptors(TableDescriptor td, Activation activation) throws StandardException - Throws:
StandardException
-