org.apache.derby.impl.sql.execute
Class CreateConstraintConstantAction
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.ConstraintConstantAction
-
- org.apache.derby.impl.sql.execute.CreateConstraintConstantAction
-
- All Implemented Interfaces:
- ConstantAction
public class CreateConstraintConstantAction extends ConstraintConstantAction
This class describes actions that are ALWAYS performed for a constraint creation at Execution time.
-
-
Field Summary
-
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecuteConstantAction(Activation activation)This is the guts of the Execution-time logic for CREATE CONSTRAINT.java.lang.StringtoString()-
Methods inherited from class org.apache.derby.impl.sql.execute.ConstraintConstantAction
getConstraintId, getConstraintName, getConstraintType, getIndexAction
-
-
-
-
Method Detail
-
executeConstantAction
public void executeConstantAction(Activation activation) throws StandardException
This is the guts of the Execution-time logic for CREATE CONSTRAINT.A constraint is represented as:
- ConstraintDescriptor.
Dependencies are created as:- ConstraintDescriptor depends on all the providers collected at compile time and passed into the constructor.
- For a FOREIGN KEY constraint ConstraintDescriptor depends on the ConstraintDescriptor for the referenced constraints and the privileges required to create the constraint.
- Parameters:
activation- The execution environment for this constant action.- Throws:
StandardException- Thrown on failure- See Also:
ConstraintDescriptor,CreateIndexConstantAction,ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG