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

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
All Implemented Interfaces:
ConstantAction
Direct Known Subclasses:
CreateIndexConstantAction, DropIndexConstantAction

public abstract class IndexConstantAction
extends DDLSingleTableConstantAction

This class is the superclass for the classes that describe actions that are ALWAYS performed for a CREATE/DROP INDEX Statement at Execution time.

Author:
Jerry Brenner

Field Summary
(package private)  java.lang.String indexName
           
(package private)  java.lang.String schemaName
           
protected  UUID tableId
           
(package private)  java.lang.String tableName
           
 
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
RUNTIMESTATISTICS, STATISTICSTIMING
 
Constructor Summary
protected IndexConstantAction(UUID tableId, java.lang.String indexName, java.lang.String tableName, java.lang.String schemaName)
          Make the ConstantAction for a CREATE/DROP INDEX statement.
 
Method Summary
 java.lang.String getIndexName()
          Get the index name.
 boolean modifiesTableId(UUID tableId)
          Does this constant action modify the passed in table uuid?
 void setIndexName(java.lang.String indexName)
          Set the index name at execution time.
 
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, toString, wait, wait, wait
 
Methods inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
executeConstantAction
 

Field Detail

indexName

java.lang.String indexName

tableName

java.lang.String tableName

schemaName

java.lang.String schemaName

tableId

protected UUID tableId
Constructor Detail

IndexConstantAction

protected IndexConstantAction(UUID tableId,
                              java.lang.String indexName,
                              java.lang.String tableName,
                              java.lang.String schemaName)
Make the ConstantAction for a CREATE/DROP INDEX statement.

Parameters:
tableId - The table uuid
indexName - Index name.
tableName - The table name
Method Detail

getIndexName

public java.lang.String getIndexName()
Get the index name.

Returns:
the name of the index

setIndexName

public void setIndexName(java.lang.String indexName)
Set the index name at execution time. Useful for unnamed constraints which have a backing index.

Parameters:
indexName - The (generated) index name.
Returns:
Nothing.

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.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.