Class Restriction.OR

    • Field Detail

      • serialVersionUID

        public static final long serialVersionUID
        Derby serializes these objects in PreparedStatements
        See Also:
        Constant Field Values
    • Constructor Detail

      • OR

        public OR​(Restriction leftChild,
                  Restriction rightChild)
        OR together two other Restrictions
        Parameters:
        leftChild - The first disjunct
        rightChild - The second disjunct
    • Method Detail

      • getLeftChild

        public Restriction getLeftChild()
        Get the left Restriction
        Returns:
        the first disjunct
      • getRightChild

        public Restriction getRightChild()
        Get the right Restriction
        Returns:
        the second disjunct
      • toSQL

        public String toSQL()
        Turn this Restriction into WHERE clause text.
        Specified by:
        toSQL in class Restriction
        Returns:
        this Restriction as WHERE clause text