Class TestConstraintNode

  • All Implemented Interfaces:
    Visitable

    class TestConstraintNode
    extends UnaryLogicalOperatorNode
    A TestConstraintNode is used to determine when a constraint has been violated.
    • Field Detail

      • sqlState

        private final java.lang.String sqlState
      • tableName

        private final java.lang.String tableName
      • cid

        private final UUID cid
      • deferrable

        private final boolean deferrable
      • constraintName

        private final java.lang.String constraintName
    • Constructor Detail

      • TestConstraintNode

        TestConstraintNode​(ValueNode booleanValue,
                           java.lang.String sqlState,
                           java.lang.String tableName,
                           ConstraintDescriptor cd,
                           ContextManager cm)
                    throws StandardException
        Parameters:
        booleanValue - The operand of the constraint test
        sqlState - The SQLState of the exception to throw if the constraint has failed
        tableName - The name of the table that the constraint is on
        cd - The descriptor of the constraint being checked
        cm - context manager
        Throws:
        StandardException