Class ExistsExpression

  • All Implemented Interfaces:
    Expression

    public final class ExistsExpression
    extends AbstractSingleEncapsulatedExpression
    An EXISTS expression is a predicate that is true only if the result of the subquery consists of one or more values and that is false otherwise.
    BNF: exists_expression ::= [NOT] EXISTS(subquery)

    Since:
    2.3
    Version:
    2.5
    Author:
    Pascal Filion
    • Constructor Detail

      • ExistsExpression

        public ExistsExpression​(AbstractExpression parent)
        Creates a new ExistsExpression.
        Parameters:
        parent - The parent of this expression
    • Method Detail

      • getActualNotIdentifier

        public java.lang.String getActualNotIdentifier()
        Returns the actual NOT identifier found in the string representation of the JPQL query, which has the actual case that was used.
        Returns:
        The NOT identifier that was actually parsed, or an empty string if it was not parsed
      • hasNot

        public boolean hasNot()
        Determines whether the identifier NOT was parsed.
        Returns:
        true if the identifier NOT was parsed; false otherwise