Class 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 Details

    • indexName

      String indexName
    • tableName

      String tableName
    • schemaName

      String schemaName
    • constraintID

      protected transient UUID constraintID
      Set by CreateConstraintConstantAction
  • Constructor Details

    • IndexConstantAction

      protected IndexConstantAction(UUID tableId, String indexName, String tableName, String schemaName)
      Make the ConstantAction for a CREATE/DROP INDEX statement.
      Parameters:
      tableId - The table uuid
      indexName - Index name.
      tableName - The table name
      schemaName - Schema that index lives in.
  • Method Details

    • getIndexName

      public String getIndexName()
      Get the index name.
      Returns:
      the name of the index
    • setIndexName

      public void setIndexName(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