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

public Class DropConstraintConstantAction

extends ConstraintConstantAction
Class Inheritance
Imports
org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.services.io.FormatableHashtable, org.apache.derby.catalog.UUID, .UUID, org.apache.derby.iapi.services.uuid.UUIDFactory, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.sql.StatementType, .Activation, org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptor, .ConstraintDescriptor, .ConstraintDescriptorList, .DataDescriptorGenerator, .DataDictionary, .ForeignKeyConstraintDescriptor, .ReferencedKeyConstraintDescriptor, .SchemaDescriptor, .TableDescriptor, org.apache.derby.iapi.types.DataValueFactory, org.apache.derby.iapi.sql.depend.DependencyManager, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.iapi.store.access.TransactionController

This class describes actions that are ALWAYS performed for a drop constraint at Execution time.
Version
0.1

Field Summary

Modifier and TypeField and Description
private boolean
private String
private int
Inherited from org.apache.derby.impl.sql.execute.ConstraintConstantAction:
constraintIdconstraintNameconstraintTypeindexActionschemaIdschemaNametableName

Constructor Summary

AccessConstructor and Description
pack-priv
DropConstraintConstantAction(String
Constraint name.
constraintName
,
String
the schema that constraint lives in.
constraintSchemaName
,
String
Table name.
tableName
,
UUID
UUID of table.
tableId
,
String
the schema that table lives in.
tableSchemaName
,
IndexConstantAction
IndexConstantAction for constraint (if necessary)
indexAction
,
int
the drop behavior (e.g. StatementType.DROP_CASCADE)
behavior
,
int verifyType)

Make one of these puppies.

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 DROP 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

cascadeback to summary
private boolean cascade
constraintSchemaNameback to summary
private String constraintSchemaName
verifyTypeback to summary
private int verifyType

Constructor Detail

DropConstraintConstantActionback to summary
pack-priv DropConstraintConstantAction(String constraintName, String constraintSchemaName, String tableName, UUID tableId, String tableSchemaName, IndexConstantAction indexAction, int behavior, int verifyType)

Make one of these puppies.

Parameters
constraintName:String

Constraint name.

constraintSchemaName:String

the schema that constraint lives in.

tableName:String

Table name.

tableId:UUID

UUID of table.

tableSchemaName:String

the schema that table lives in.

indexAction:IndexConstantAction

IndexConstantAction for constraint (if necessary)

behavior:int

the drop behavior (e.g. StatementType.DROP_CASCADE)

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 DROP 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