Class CheckForIsNotNullConstraint

  • All Implemented Interfaces:
    ConstraintTraverseAction

    public class CheckForIsNotNullConstraint
    extends java.lang.Object
    implements ConstraintTraverseAction
    For use with ConstraintHelper.traverseConstraints(). For each constrain check whether ir sets the given query node to be 'NOT NULL'
    Author:
    Richard Smith
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(Constraint c)
      Perform test for NOT NULL constraint on node
      boolean exists()
      Check whether a NOT NULL constraint was found.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CheckForIsNotNullConstraint

        public CheckForIsNotNullConstraint​(QueryNode node)
        Construct with the QueryNode to test for NOT NULL constraint.
        Parameters:
        node - the node to test
    • Method Detail

      • exists

        public boolean exists()
        Check whether a NOT NULL constraint was found.
        Returns:
        true if NOT CULL constraint found