Class SetConstraintsConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.SetConstraintsConstantAction
- All Implemented Interfaces:
ConstantAction
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
FieldsModifier and TypeFieldDescriptionprivate final boolean
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeConstantAction
(Activation activation) This is the guts of the execution time logic for SET CONSTRAINT.toString()
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
-
Field Details
-
deferred
private final boolean deferred -
constraints
-
-
Constructor Details
-
SetConstraintsConstantAction
- Parameters:
constraints
- List of constraints to set; null if all.deferred
- Encodes IMMEDIATE (false), DEFERRED (true)
-
-
Method Details
-
toString
-
executeConstantAction
This is the guts of the execution time logic for SET CONSTRAINT.- Parameters:
activation
-- Throws:
StandardException
- Thrown on failure- See Also:
-