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 Details

    • deferred

      private final boolean deferred
    • constraints

      private final List<TableName> constraints
  • Constructor Details

    • SetConstraintsConstantAction

      SetConstraintsConstantAction(List<TableName> constraints, boolean deferred)
      Parameters:
      constraints - List of constraints to set; null if all.
      deferred - Encodes IMMEDIATE (false), DEFERRED (true)
  • Method Details