org.apache.derby.impl.sql.execute
Class IndexConstantAction
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.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
indexName
java.lang.String indexName
tableName
java.lang.String tableName
schemaName
java.lang.String schemaName
tableId
protected UUID tableId
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 uuidindexName
- Index name.tableName
- The table name
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.