Class AggregateExpression<T,​E>

  • Type Parameters:
    T - The originating expression type
    E - The aggregate expression type
    All Implemented Interfaces:
    IExpression<E>, SelectionVisitable, ISelection<E>, jakarta.persistence.criteria.Expression<E>, jakarta.persistence.criteria.Selection<E>, jakarta.persistence.TupleElement<E>

    @Internal
    public final class AggregateExpression<T,​E>
    extends java.lang.Object
    implements IExpression<E>, SelectionVisitable
    The aggregate expression.
    Since:
    3.2
    Author:
    Denis Stepanov
    • Constructor Detail

      • AggregateExpression

        public AggregateExpression​(jakarta.persistence.criteria.Expression<T> expression,
                                   AggregateType type)
      • AggregateExpression

        public AggregateExpression​(jakarta.persistence.criteria.Expression<T> expression,
                                   AggregateType type,
                                   java.lang.Class<E> expressionType)
    • Method Detail

      • isBoolean

        public boolean isBoolean()
        Specified by:
        isBoolean in interface IExpression<T>
        Returns:
        true if the expression is of boolean type
      • isNumeric

        public boolean isNumeric()
        Specified by:
        isNumeric in interface IExpression<T>
        Returns:
        true if the expression is of numeric type
      • isComparable

        public boolean isComparable()
        Specified by:
        isComparable in interface IExpression<T>
        Returns:
        true if the expression is of comparable type
      • getJavaType

        public java.lang.Class<E> getJavaType()
        Specified by:
        getJavaType in interface jakarta.persistence.TupleElement<T>
      • getExpression

        public jakarta.persistence.criteria.Expression<T> getExpression()
      • getExpressionType

        @Nullable
        public java.lang.Class<E> getExpressionType()