Class UnaryExpression<E>
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.expression.UnaryExpression<E>
- Type Parameters:
E
- The aggregate expression type
- All Implemented Interfaces:
IExpression<E>
,ISelection<E>
,jakarta.persistence.criteria.Expression<E>
,jakarta.persistence.criteria.Selection<E>
,jakarta.persistence.TupleElement<E>
The unary expression.
- Since:
- 3.2
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionUnaryExpression
(jakarta.persistence.criteria.Expression<?> expression, UnaryExpressionType type) UnaryExpression
(jakarta.persistence.criteria.Expression<?> expression, UnaryExpressionType type, Class<E> expressionType) -
Method Summary
Modifier and TypeMethodDescription@NonNull jakarta.persistence.criteria.Expression<?>
@NonNull UnaryExpressionType
getType()
boolean
boolean
boolean
void
visitExpression
(ExpressionVisitor expressionVisitor) Visit the expression.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, visitSelection
Methods inherited from interface io.micronaut.data.model.jpa.criteria.ISelection
alias, getAlias, getCompoundSelectionItems, isCompoundSelection
-
Constructor Details
-
UnaryExpression
public UnaryExpression(jakarta.persistence.criteria.Expression<?> expression, UnaryExpressionType type) -
UnaryExpression
public UnaryExpression(jakarta.persistence.criteria.Expression<?> expression, UnaryExpressionType type, @Nullable Class<E> expressionType)
-
-
Method Details
-
getJavaType
- Specified by:
getJavaType
in interfacejakarta.persistence.TupleElement<E>
-
getType
-
getExpression
@NonNull public @NonNull jakarta.persistence.criteria.Expression<?> getExpression() -
visitExpression
Description copied from interface:IExpression
Visit the expression.- Parameters:
expressionVisitor
- The expression visitor
-
isBoolean
public boolean isBoolean()- Specified by:
isBoolean
in interfaceIExpression<E>
- Returns:
- true if the expression is of boolean type
-
isNumeric
public boolean isNumeric()- Specified by:
isNumeric
in interfaceIExpression<E>
- Returns:
- true if the expression is of numeric type
-
isComparable
public boolean isComparable()- Specified by:
isComparable
in interfaceIExpression<E>
- Returns:
- true if the expression is of comparable type
-
getExpressionType
-