Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

public abstract Class IndexConstantAction

extends DDLSingleTableConstantAction
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.sql.execute.CreateIndexConstantAction, org.apache.derby.impl.sql.execute.DropIndexConstantAction
Imports
org.apache.derby.catalog.UUID, org.apache.derby.shared.common.sanity.SanityManager

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

Modifier and TypeField and Description
protected transient UUID
constraintID

Set by CreateConstraintConstantAction

pack-priv String
pack-priv String
pack-priv String
Inherited from org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction:
tableId

Constructor Summary

AccessConstructor and Description
protected
IndexConstantAction(UUID
The table uuid
tableId
,
String
Index name.
indexName
,
String
The table name
tableName
,
String
Schema that index lives in.
schemaName
)

Make the ConstantAction for a CREATE/DROP INDEX statement.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the index
getIndexName
()

Get the index name.

public void
setConstraintID(UUID
The id of the constraint
constraintID
)

Set the id for the constraint which may be driving this index action.

public void
setIndexName(String
The (generated) index name.
indexName
)

Set the index name at execution time.

Inherited from org.apache.derby.impl.sql.execute.DDLSingleTableConstantAction:
dropConglomeratedropConglomeratedropConstraintdropConstraintdropConstraintexecuteConglomReplacementgetConglomReplacementActionrecreateUniqueConstraintBackingIndexAsUniqueWhenNotNull

Field Detail

constraintIDback to summary
protected transient UUID constraintID

Set by CreateConstraintConstantAction

indexNameback to summary
pack-priv String indexName
schemaNameback to summary
pack-priv String schemaName
tableNameback to summary
pack-priv String tableName

Constructor Detail

IndexConstantActionback to summary
protected IndexConstantAction(UUID tableId, String indexName, String tableName, String schemaName)

Make the ConstantAction for a CREATE/DROP INDEX statement.

Parameters
tableId:UUID

The table uuid

indexName:String

Index name.

tableName:String

The table name

schemaName:String

Schema that index lives in.

Method Detail

getIndexNameback to summary
public String getIndexName()

Get the index name.

Returns:String

the name of the index

setConstraintIDback to summary
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:UUID

The id of the constraint

setIndexNameback to summary
public void setIndexName(String indexName)

Set the index name at execution time. Useful for unnamed constraints which have a backing index.

Parameters
indexName:String

The (generated) index name.