Class IndexConstantAction
- java.lang.Object
-
- 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected UUID
constraintID
Set by CreateConstraintConstantAction(package private) java.lang.String
indexName
(package private) java.lang.String
schemaName
(package private) java.lang.String
tableName
-
Fields inherited from class org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
tableId
-
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
-
Constructor Summary
Constructors Modifier Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIndexName()
Get the index name.void
setConstraintID(UUID constraintID)
Set the id for the constraint which may be driving this index action.void
setIndexName(java.lang.String indexName)
Set the index name at execution time.-
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, 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
-
constraintID
protected transient UUID constraintID
Set by CreateConstraintConstantAction
-
-
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 uuidindexName
- Index name.tableName
- The table nameschemaName
- Schema that index lives in.
-
-
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.
-
setConstraintID
public void setConstraintID(UUID constraintID)
Set the id for the constraint which may be driving this index action. This is called by CreateConstraintConstantAction.- Parameters:
constraintID
- The id of the constraint
-
-