Class SubqueryExistsConstraint


  • public class SubqueryExistsConstraint
    extends Constraint
    Check if there are any rows in the subquery
    Author:
    Tom Reilly, Matthew Wakeling
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Test whether two SubqueryConstraints are equal, overrides Object.equals()
      Query getQuery()
      Get the query.
      int hashCode()
      Get the hashCode for this object overrides Object.hashCode()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • subquery

        protected Query subquery
      • VALID_OPS

        protected static final java.util.List<ConstraintOp> VALID_OPS
    • Constructor Detail

      • SubqueryExistsConstraint

        public SubqueryExistsConstraint​(ConstraintOp op,
                                        Query query)
        Construct a SubqueryExistsConstraint
        Parameters:
        op - required op of constraint
        query - the subquery in question
    • Method Detail

      • getQuery

        public Query getQuery()
        Get the query.
        Returns:
        the subquery of the constraint
      • equals

        public boolean equals​(java.lang.Object obj)
        Test whether two SubqueryConstraints are equal, overrides Object.equals()
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to compare with
        Returns:
        true if objects are equal
      • hashCode

        public int hashCode()
        Get the hashCode for this object overrides Object.hashCode()
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hashCode