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

public Class AlterConstraintConstantAction

extends ConstraintConstantAction
Class Inheritance
Imports
org.apache.derby.catalog.UUID, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.services.property.PropertyUtil, org.apache.derby.iapi.sql.Activation, .StatementType, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.sql.depend.DependencyManager, org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor, .ConstraintDescriptorList, .DataDictionary, .ForeignKeyConstraintDescriptor, .ReferencedKeyConstraintDescriptor, .SchemaDescriptor, .TableDescriptor, org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.iapi.store.access.TransactionController, org.apache.derby.impl.sql.catalog.SYSCONSTRAINTSRowFactory, org.apache.derby.impl.sql.compile.ConstraintDefinitionNode

This class describes actions that are ALWAYS performed for a alter constraint at Execution time.

Field Summary

Modifier and TypeField and Description
pack-priv boolean[]
private String
Inherited from org.apache.derby.impl.sql.execute.ConstraintConstantAction:
constraintIdconstraintNameconstraintTypeindexActionschemaIdschemaNametableName

Constructor Summary

AccessConstructor and Description
pack-priv
AlterConstraintConstantAction(String
The constraint name.
constraintName
,
String
The schema that constraint lives in.
constraintSchemaName
,
boolean[]
The (presumably) altered enforcement characteristics.
characteristics
,
String
Table name.
tableName
,
UUID
The UUID of table.
tableId
,
String
The schema that table lives in.
tableSchemaName
,
IndexConstantAction
IndexConstantAction for constraint
indexAction
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public void
executeConstantAction(Activation
The execution environment for this constant action.
activation
)

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for ALTER CONSTRAINT.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.derby.impl.sql.execute.ConstraintConstantAction:
getConstraintIdgetConstraintNamegetConstraintTypegetIndexActionvalidateConstraintvalidateFKConstraint

Field Detail

characteristicsback to summary
pack-priv boolean[] characteristics
constraintSchemaNameback to summary
private String constraintSchemaName

Constructor Detail

AlterConstraintConstantActionback to summary
pack-priv AlterConstraintConstantAction(String constraintName, String constraintSchemaName, boolean[] characteristics, String tableName, UUID tableId, String tableSchemaName, IndexConstantAction indexAction)

Constructor.

Parameters
constraintName:String

The constraint name.

constraintSchemaName:String

The schema that constraint lives in.

characteristics:boolean[]

The (presumably) altered enforcement characteristics.

tableName:String

Table name.

tableId:UUID

The UUID of table.

tableSchemaName:String

The schema that table lives in.

indexAction:IndexConstantAction

IndexConstantAction for constraint

Method Detail

executeConstantActionback to summary
public void executeConstantAction(Activation activation) throws StandardException

Implements org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

This is the guts of the Execution-time logic for ALTER CONSTRAINT.

Parameters
activation:Activation

Doc from org.apache.derby.iapi.sql.execute.ConstantAction.executeConstantAction.

The execution environment for this constant action.

Exceptions
StandardException:
Thrown on failure
See Also
ConstantAction#executeConstantAction
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override