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 Object
implements IExpression<E>, SelectionVisitable
The aggregate expression.
- Since:
- 3.2
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionAggregateExpression
(jakarta.persistence.criteria.Expression<T> expression, AggregateType type) AggregateExpression
(jakarta.persistence.criteria.Expression<T> expression, AggregateType type, Class<E> expressionType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SelectionVisitor selectionVisitor) jakarta.persistence.criteria.Expression<T>
getType()
boolean
boolean
boolean
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 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
- 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
- Specified by:
getJavaType
in interfacejakarta.persistence.TupleElement<T>
-
getType
-
getExpression
-
getExpressionType
-