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>

@Internal public final class UnaryExpression<E> extends Object
The unary expression.
Since:
3.2
Author:
Denis Stepanov
  • 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

      public Class<E> getJavaType()
      Specified by:
      getJavaType in interface jakarta.persistence.TupleElement<E>
    • getType

      @NonNull public @NonNull UnaryExpressionType getType()
    • getExpression

      @NonNull public @NonNull jakarta.persistence.criteria.Expression<?> getExpression()
    • visitExpression

      public void visitExpression(ExpressionVisitor expressionVisitor)
      Description copied from interface: IExpression
      Visit the expression.
      Parameters:
      expressionVisitor - The expression visitor
    • isBoolean

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

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

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

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