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

pack-priv Class SetConstraintsConstantAction

extends DDLConstantAction
Class Inheritance
Imports
java.util.ArrayList, .List, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.sql.conn.LanguageConnectionContext, org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor, .DataDictionary, .SchemaDescriptor, org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.iapi.util.IdUtil, org.apache.derby.impl.sql.compile.TableName

This class describes actions that are performed for a set constraint at execution time.

Note that the dependency action we send is SET_CONSTRAINTS rather than ALTER_TABLE. We do this because we want to distinguish SET_CONSTRAINTS from ALTER_TABLE for error messages.

Field Summary

Modifier and TypeField and Description
private final List<TableName>
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
SetConstraintsConstantAction(List<TableName>
List of constraints to set; null if all.
constraints
,
boolean
Encodes IMMEDIATE (false), DEFERRED (true)
deferred
)

Method Summary

Modifier and TypeMethod and Description
public void
executeConstantAction(Activation activation)

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

This is the guts of the execution time logic for SET CONSTRAINT.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.derby.impl.sql.execute.DDLConstantAction:
addColumnDependenciesadjustUDTDependenciesadjustUDTDependenciesconstructToStringgetAndCheckSchemaDescriptorgetSchemaDescriptorForCreatelockTableForDDLstoreConstraintDependenciesOnPrivilegesstoreViewTriggerDependenciesOnPrivileges

Field Detail

constraintsback to summary
private final List<TableName> constraints
deferredback to summary
private final boolean deferred

Constructor Detail

SetConstraintsConstantActionback to summary
pack-priv SetConstraintsConstantAction(List<TableName> constraints, boolean deferred)
Parameters
constraints:List<TableName>

List of constraints to set; null if all.

deferred:boolean

Encodes IMMEDIATE (false), DEFERRED (true)

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 SET CONSTRAINT.

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