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
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
FieldsModifier and TypeFieldDescriptionprotected UUIDSet by CreateConstraintConstantAction(package private) String(package private) String(package private) StringFields inherited from class org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction
tableIdFields 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
ConstructorsModifierConstructorDescriptionprotectedIndexConstantAction(UUID tableId, String indexName, String tableName, String schemaName) Make the ConstantAction for a CREATE/DROP INDEX statement. -
Method Summary
Modifier and TypeMethodDescriptionGet the index name.voidsetConstraintID(UUID constraintID) Set the id for the constraint which may be driving this index action.voidsetIndexName(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, recreateUniqueConstraintBackingIndexAsUniqueWhenNotNullMethods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivilegesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
executeConstantAction
-
Field Details
-
Constructor Details
-
IndexConstantAction
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 Details
-
getIndexName
Get the index name.- Returns:
- the name of the index
-
setIndexName
Set the index name at execution time. Useful for unnamed constraints which have a backing index.- Parameters:
indexName- The (generated) index name.
-
setConstraintID
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
-