ConstantActionclass 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 | Description |
|---|---|---|
private java.util.List<TableName> |
constraints |
|
private boolean |
deferred |
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT| Constructor | Description |
|---|---|
SetConstraintsConstantAction(java.util.List<TableName> constraints,
boolean deferred) |
| Modifier and Type | Method | 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, storeViewTriggerDependenciesOnPrivilegesprivate 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.Objectpublic void executeConstantAction(Activation activation) throws StandardException
activation - StandardException - Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.