org.apache.derby.impl.sql.execute
Class DropTableConstantAction

java.lang.Object
  extended by org.apache.derby.impl.sql.execute.DDLConstantAction
      extended by org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
          extended by 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.


Field Summary
private  boolean cascade
           
private  long conglomerateNumber
           
private  java.lang.String fullTableName
           
private  SchemaDescriptor sd
           
private  java.lang.String tableName
           
 
Fields inherited from class org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
tableId
 
Constructor Summary
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.
 
Method Summary
private  void dropAllConstraintDescriptors(TableDescriptor td, Activation activation)
           
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for DROP TABLE.
 java.lang.String 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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 name
tableName - Table name.
sd - Schema that table lives in.
conglomerateNumber - Conglomerate number for heap
tableId - UUID for table
behavior - drop behavior: RESTRICT, CASCADE or default
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.