Class AggregateExpression<T,E>

java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.selection.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 Object implements IExpression<E>, SelectionVisitable
The aggregate expression.
Since:
3.2
Author:
Denis Stepanov
  • Constructor Details

    • AggregateExpression

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

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

    • accept

      public void accept(SelectionVisitor selectionVisitor)
      Specified by:
      accept in interface SelectionVisitable
    • 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 Class<E> getJavaType()
      Specified by:
      getJavaType in interface jakarta.persistence.TupleElement<T>
    • getType

      public AggregateType getType()
    • getExpression

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

      @Nullable public @Nullable Class<E> getExpressionType()