Class IdExpression<E,T>

java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.IdExpression<E,T>
Type Parameters:
E - The entity type
T - The ID 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 IdExpression<E,T> extends Object implements IExpression<T>, SelectionVisitable
The ID expression implementation.
Since:
3.3
Author:
Denis Stepanov
  • Constructor Details

  • Method Details

    • getRoot

      public PersistentEntityRoot<E> getRoot()
    • accept

      public void accept(SelectionVisitor selectionVisitor)
      Specified by:
      accept in interface SelectionVisitable
    • 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
    • getJavaType

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

      public String toString()
      Overrides:
      toString in class Object