Class LiteralExpression<T>

java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.LiteralExpression<T>
Type Parameters:
T - The literal type
All Implemented Interfaces:
IExpression<T>, SelectionVisitable, ISelection<T>, jakarta.persistence.criteria.Expression<T>, jakarta.persistence.criteria.Selection<T>, jakarta.persistence.TupleElement<T>

@Internal public final class LiteralExpression<T> extends Object implements IExpression<T>, SelectionVisitable
The literal expression implementation.
Since:
3.2
Author:
Denis Stepanov
  • Constructor Details

    • LiteralExpression

      public LiteralExpression(Class<T> clazz)
    • LiteralExpression

      public LiteralExpression(@Nullable T object)
  • Method Details

    • accept

      public void accept(SelectionVisitor selectionVisitor)
      Specified by:
      accept in interface SelectionVisitable
    • getValue

      public T getValue()
    • 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

      @Nullable public @Nullable Class<? extends T> getJavaType()
      Specified by:
      getJavaType in interface jakarta.persistence.TupleElement<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object