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

java.lang.Object
  extended byorg.apache.derby.impl.sql.execute.GenericConstantAction
      extended byorg.apache.derby.impl.sql.execute.DDLConstantAction
          extended byorg.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
              extended byorg.apache.derby.impl.sql.execute.ConstraintConstantAction
                  extended byorg.apache.derby.impl.sql.execute.DropConstraintConstantAction
All Implemented Interfaces:
ConstantAction

class DropConstraintConstantAction
extends ConstraintConstantAction

This class describes actions that are ALWAYS performed for a drop constraint at Execution time.

Version:
0.1
Author:
Jerry Brenner

Field Summary
private  boolean cascade
           
private  java.lang.String constraintSchemaName
           
private  int verifyType
           
 
Fields inherited from class org.apache.derby.impl.sql.execute.ConstraintConstantAction
constraintName, constraintType, indexAction, schemaId, schemaName, tableId, tableName
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
RUNTIMESTATISTICS, STATISTICSTIMING
 
Constructor Summary
(package private) DropConstraintConstantAction(java.lang.String constraintName, java.lang.String constraintSchemaName, java.lang.String tableName, UUID tableId, java.lang.String tableSchemaName, IndexConstantAction indexAction, int behavior, int verifyType)
          Make one of these puppies.
 
Method Summary
protected static void dropConstraintAndIndex(DependencyManager dm, TableDescriptor td, DataDictionary dd, ConstraintDescriptor conDesc, TransactionController tc, Activation activation, boolean clearDependencies)
           
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for DROP CONSTRAINT.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.derby.impl.sql.execute.ConstraintConstantAction
getConstraintName, getConstraintType, getIndexAction, modifiesTableId, validateConstraint, validateFKConstraint
 
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, readExternal, upToDate, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cascade

private boolean cascade

constraintSchemaName

private java.lang.String constraintSchemaName

verifyType

private int verifyType
Constructor Detail

DropConstraintConstantAction

DropConstraintConstantAction(java.lang.String constraintName,
                             java.lang.String constraintSchemaName,
                             java.lang.String tableName,
                             UUID tableId,
                             java.lang.String tableSchemaName,
                             IndexConstantAction indexAction,
                             int behavior,
                             int verifyType)
Make one of these puppies.

Parameters:
constraintName - Constraint name.
constraintSchemaName - the schema that constraint lives in.
tableName - Table name.
tableId - UUID of table.
tableSchemaName - the schema that table lives in.
indexAction - IndexConstantAction for constraint (if necessary)
behavior - the drop behavior (e.g. StatementType.DROP_CASCADE)
Method Detail

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 CONSTRAINT.

Parameters:
activation - The execution environment for this constant action.
Throws:
StandardException - Thrown on failure
See Also:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)

dropConstraintAndIndex

protected static void dropConstraintAndIndex(DependencyManager dm,
                                             TableDescriptor td,
                                             DataDictionary dd,
                                             ConstraintDescriptor conDesc,
                                             TransactionController tc,
                                             Activation activation,
                                             boolean clearDependencies)
                                      throws StandardException
Throws:
StandardException


Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.