Class SetConstraintsConstantAction
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.DDLConstantAction
-
- org.apache.derby.impl.sql.execute.SetConstraintsConstantAction
-
- All Implemented Interfaces:
ConstantAction
class SetConstraintsConstantAction extends DDLConstantAction
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
Fields Modifier and Type Field Description private java.util.List<TableName>
constraints
private boolean
deferred
-
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 Constructor Description SetConstraintsConstantAction(java.util.List<TableName> constraints, boolean deferred)
-
Method Summary
All Methods Instance Methods Concrete Methods 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()
-
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction
addColumnDependencies, adjustUDTDependencies, adjustUDTDependencies, constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, storeConstraintDependenciesOnPrivileges, storeViewTriggerDependenciesOnPrivileges
-
-
-
-
Field Detail
-
deferred
private final boolean deferred
-
constraints
private final java.util.List<TableName> constraints
-
-
Constructor Detail
-
SetConstraintsConstantAction
SetConstraintsConstantAction(java.util.List<TableName> constraints, boolean deferred)
- Parameters:
constraints
- List of constraints to set; null if all.deferred
- Encodes IMMEDIATE (false), DEFERRED (true)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
executeConstantAction
public void executeConstantAction(Activation activation) throws StandardException
This is the guts of the execution time logic for SET CONSTRAINT.- Parameters:
activation
-- Throws:
StandardException
- Thrown on failure- See Also:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
-
-