Class AggregateExpression<T,E>
- java.lang.Object
-
- io.micronaut.data.model.jpa.criteria.impl.selection.AggregateExpression<T,E>
-
- Type Parameters:
T
- The originating expression typeE
- 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 Summary
Constructors Constructor Description AggregateExpression(jakarta.persistence.criteria.Expression<T> expression, AggregateType type)
AggregateExpression(jakarta.persistence.criteria.Expression<T> expression, AggregateType type, java.lang.Class<E> expressionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SelectionVisitor selectionVisitor)
jakarta.persistence.criteria.Expression<T>
getExpression()
java.lang.Class<E>
getExpressionType()
java.lang.Class<E>
getJavaType()
AggregateType
getType()
boolean
isBoolean()
boolean
isComparable()
boolean
isNumeric()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micronaut.data.model.jpa.criteria.IExpression
as, in, in, in, in, isNotNull, isNull
-
Methods inherited from interface io.micronaut.data.model.jpa.criteria.ISelection
alias, getAlias, getCompoundSelectionItems, isCompoundSelection
-
-
-
-
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
-
accept
public void accept(SelectionVisitor selectionVisitor)
- Specified by:
accept
in interfaceSelectionVisitable
-
isBoolean
public boolean isBoolean()
- Specified by:
isBoolean
in interfaceIExpression<T>
- Returns:
- true if the expression is of boolean type
-
isNumeric
public boolean isNumeric()
- Specified by:
isNumeric
in interfaceIExpression<T>
- Returns:
- true if the expression is of numeric type
-
isComparable
public boolean isComparable()
- Specified by:
isComparable
in interfaceIExpression<T>
- Returns:
- true if the expression is of comparable type
-
getJavaType
public java.lang.Class<E> getJavaType()
- Specified by:
getJavaType
in interfacejakarta.persistence.TupleElement<T>
-
getType
public AggregateType getType()
-
getExpression
public jakarta.persistence.criteria.Expression<T> getExpression()
-
getExpressionType
@Nullable public java.lang.Class<E> getExpressionType()
-
-