Class AllOrAnyExpressionStateObject

  • All Implemented Interfaces:
    StateObject

    public class AllOrAnyExpressionStateObject
    extends AbstractSingleEncapsulatedExpressionStateObject
    An ALL conditional expression is a predicate that is true if the comparison operation is true for all values in the result of the subquery or the result of the subquery is empty. An ALL conditional expression is false if the result of the comparison is false for at least one row, and is unknown if neither true nor false.

    An ANY conditional expression is a predicate that is true if the comparison operation is true for some value in the result of the subquery. An ANY conditional expression is false if the result of the subquery is empty or if the comparison operation is false for every value in the esult of the subquery, and is unknown if neither true nor false. The keyword SOME is synonymous with ANY. The comparison operators used with ALL or ANY conditional expressions are =, <, <=, >, >=, <>. The result of the subquery must be like that of the other argument to the comparison operator in type.

    BNF: all_or_any_expression ::= {ALL|ANY|SOME}(subquery)

    Version:
    2.4
    See Also:
    AllOrAnyExpression
    Author:
    Pascal Filion
    Since:
    2.4
    • Field Detail

      • IDENTIFIER_PROPERTY

        public static final java.lang.String IDENTIFIER_PROPERTY
        Notifies the identifier property has changed.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AllOrAnyExpressionStateObject

        public AllOrAnyExpressionStateObject​(StateObject parent,
                                             java.lang.String identifier)
        Creates a new AllOrAnyExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        identifier - One of the three possible JPQL identifiers: ALL, ANY or SOME
        Throws:
        Assert.AssertException - The given JPQL identifier is one from the possible choices
        java.lang.NullPointerException - The given parent cannot be null
      • AllOrAnyExpressionStateObject

        public AllOrAnyExpressionStateObject​(StateObject parent,
                                             java.lang.String identifier,
                                             StateObject stateObject)
        Creates a new AllOrAnyExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        identifier - One of the three possible JPQL identifiers: ALL, ANY or SOME
        stateObject - The StateObject representing the encapsulated expression
        Throws:
        Assert.AssertException - The given JPQL identifier is one from the possible choices
        java.lang.NullPointerException - The given parent cannot be null
      • AllOrAnyExpressionStateObject

        public AllOrAnyExpressionStateObject​(StateObject parent,
                                             java.lang.String identifier,
                                             java.lang.String jpqlFragment)
        Creates a new AllOrAnyExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        identifier - One of the three possible JPQL identifiers: ALL, ANY or SOME
        jpqlFragment - The portion of the query representing the encapsulated expression
        Throws:
        Assert.AssertException - The given JPQL identifier is one from the possible choices
        java.lang.NullPointerException - The given parent cannot be null