Class IdExpression<E,T>
- java.lang.Object
-
- io.micronaut.data.model.jpa.criteria.impl.IdExpression<E,T>
-
- Type Parameters:
E- The entity typeT- 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 java.lang.Object implements IExpression<T>, SelectionVisitable
The ID expression implementation.- Since:
- 3.3
- Author:
- Denis Stepanov
-
-
Constructor Summary
Constructors Constructor Description IdExpression(PersistentEntityRoot<E> root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SelectionVisitor selectionVisitor)java.lang.Class<? extends T>getJavaType()PersistentEntityRoot<E>getRoot()booleanisBoolean()booleanisComparable()booleanisNumeric()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 Detail
-
IdExpression
public IdExpression(PersistentEntityRoot<E> root)
-
-
Method Detail
-
getRoot
public PersistentEntityRoot<E> getRoot()
-
accept
public void accept(SelectionVisitor selectionVisitor)
- Specified by:
acceptin interfaceSelectionVisitable
-
isBoolean
public boolean isBoolean()
- Specified by:
isBooleanin interfaceIExpression<E>- Returns:
- true if the expression is of boolean type
-
isNumeric
public boolean isNumeric()
- Specified by:
isNumericin interfaceIExpression<E>- Returns:
- true if the expression is of numeric type
-
isComparable
public boolean isComparable()
- Specified by:
isComparablein interfaceIExpression<E>- Returns:
- true if the expression is of comparable type
-
getJavaType
public java.lang.Class<? extends T> getJavaType()
- Specified by:
getJavaTypein interfacejakarta.persistence.TupleElement<E>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-