Class AbstractConditionalClause

  • All Implemented Interfaces:
    Expression
    Direct Known Subclasses:
    HavingClause, OnClause, StartWithClause, WhereClause

    public abstract class AbstractConditionalClause
    extends AbstractExpression
    Conditional expressions are composed of other conditional expressions, comparison operations, logical operations, path expressions that evaluate to boolean values, boolean literals, and boolean input parameters. Arithmetic expressions can be used in comparison expressions. Arithmetic expressions are composed of other arithmetic expressions, arithmetic operations, path expressions that evaluate to numeric values, numeric literals, and numeric input parameters. Arithmetic operations use numeric promotion. Standard bracketing () for ordering expression evaluation is supported.
    BNF: expression ::= identifier conditional_expression

    Since:
    2.3
    Version:
    2.5
    Author:
    Pascal Filion
    See Also:
    HavingClause, OnClause, StartWithClause, WhereClause
    • Method Detail

      • buildCollectionExpression

        public CollectionExpression buildCollectionExpression()
        Creates a new CollectionExpression that will wrap the single select item.
        Returns:
        The single select item represented by a temporary collection
      • getActualIdentifier

        public final String getActualIdentifier()
        Returns the actual identifier found in the string representation of the JPQL query, which has the actual case that was used.
        Returns:
        The identifier that was actually parsed
      • getConditionalExpression

        public final Expression getConditionalExpression()
        Returns the expression representing the composition of the conditional expressions.
        Returns:
        The actual conditional expression
      • getIdentifier

        public final String getIdentifier()
        Returns the JPQL identifier of this expression.
        Returns:
        The JPQL identifier
      • hasConditionalExpression

        public final boolean hasConditionalExpression()
        Determines whether the conditional expression was parsed.
        Returns:
        true if there is a conditional expression; false otherwise
      • hasSpaceAfterIdentifier

        public final boolean hasSpaceAfterIdentifier()
        Determines whether a whitespace was parsed after the identifier or not.
        Returns:
        true if there was a whitespace after the identifier; false otherwise