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

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.IndexConstantAction
                  extended byorg.apache.derby.impl.sql.execute.DropIndexConstantAction
All Implemented Interfaces:
ConstantAction

class DropIndexConstantAction
extends IndexConstantAction

This class describes actions that are ALWAYS performed for a DROP INDEX Statement at Execution time.

Author:
Jeff Lichtman Cribbed from DropTableConstantAction

Field Summary
private  java.lang.String fullIndexName
           
private  long tableConglomerateId
           
 
Fields inherited from class org.apache.derby.impl.sql.execute.IndexConstantAction
indexName, schemaName, tableId, tableName
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
RUNTIMESTATISTICS, STATISTICSTIMING
 
Constructor Summary
(package private) DropIndexConstantAction(java.lang.String fullIndexName, java.lang.String indexName, java.lang.String tableName, java.lang.String schemaName, UUID tableId, long tableConglomerateId)
          Make the ConstantAction for a DROP INDEX statement.
 
Method Summary
static void dropIndex(DependencyManager dm, DataDictionary dd, TransactionController tc, ConglomerateDescriptor cd, TableDescriptor td, Activation act)
           
 void executeConstantAction(Activation activation)
          This is the guts of the Execution-time logic for DROP INDEX.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.derby.impl.sql.execute.IndexConstantAction
getIndexName, modifiesTableId, setIndexName
 
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

fullIndexName

private java.lang.String fullIndexName

tableConglomerateId

private long tableConglomerateId
Constructor Detail

DropIndexConstantAction

DropIndexConstantAction(java.lang.String fullIndexName,
                        java.lang.String indexName,
                        java.lang.String tableName,
                        java.lang.String schemaName,
                        UUID tableId,
                        long tableConglomerateId)
Make the ConstantAction for a DROP INDEX statement.

Parameters:
fullIndexName - Fully qualified index name
indexName - Index name.
tableName - The table name
schemaName - Schema that index lives in.
tableId - UUID for table
tableConglomerateId - heap Conglomerate Id for table
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 INDEX.

Parameters:
activation - The execution environment for this constant action.
Throws:
StandardException - Thrown on failure

dropIndex

public static void dropIndex(DependencyManager dm,
                             DataDictionary dd,
                             TransactionController tc,
                             ConglomerateDescriptor cd,
                             TableDescriptor td,
                             Activation act)
                      throws StandardException
Throws:
StandardException


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