org.apache.derby.impl.sql.execute
Class DropTableConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.GenericConstantAction
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
- class DropTableConstantAction
- extends DDLSingleTableConstantAction
This class describes actions that are ALWAYS performed for a
DROP TABLE Statement at Execution time.
- Author:
- Rick Hillegas Extracted code from DropTableResultSet.
Constructor Summary |
(package private) |
DropTableConstantAction(java.lang.String fullTableName,
java.lang.String tableName,
SchemaDescriptor sd,
long conglomerateNumber,
UUID tableId,
int behavior)
Make the ConstantAction for a DROP TABLE statement. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
conglomerateNumber
private final long conglomerateNumber
fullTableName
private final java.lang.String fullTableName
tableName
private final java.lang.String tableName
sd
private final SchemaDescriptor sd
cascade
private final boolean cascade
tableId
protected UUID tableId
DropTableConstantAction
DropTableConstantAction(java.lang.String fullTableName,
java.lang.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.tableId
- UUID for tablebehavior
- drop behavior: RESTRICT, CASCADE or default
toString
public java.lang.String toString()
executeConstantAction
public void executeConstantAction(Activation activation)
throws StandardException
- 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:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
dropAllConstraintDescriptors
private void dropAllConstraintDescriptors(TableDescriptor td,
Activation activation)
throws StandardException
- Throws:
StandardException
modifiesTableId
public boolean modifiesTableId(UUID tableId)
- Does this constant action modify the passed in table
uuid? By modify we mean add or drop things tied to
this table (e.g. index, trigger, constraint). Things
like views or spses that reference this table don't
count.
- Specified by:
modifiesTableId
in interface ConstantAction
- Overrides:
modifiesTableId
in class DDLConstantAction
- Parameters:
tableId
- the table id
Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.