class SetConstraintsConstantAction extends DDLConstantAction
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.
Modifier and Type | Field and Description |
---|---|
private java.util.List<TableName> |
constraints |
private boolean |
deferred |
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
Constructor and Description |
---|
SetConstraintsConstantAction(java.util.List<TableName> constraints,
boolean deferred) |
Modifier and Type | Method and Description |
---|---|
void |
executeConstantAction(Activation activation)
This is the guts of the execution time logic for SET CONSTRAINT.
|
java.lang.String |
toString() |
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
private final boolean deferred
private final java.util.List<TableName> constraints
SetConstraintsConstantAction(java.util.List<TableName> constraints, boolean deferred)
constraints
- List of constraints to set; null if all.deferred
- Encodes IMMEDIATE (false), DEFERRED (true)public java.lang.String toString()
toString
in class java.lang.Object
public void executeConstantAction(Activation activation) throws StandardException
activation
- StandardException
- Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.