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 java.lang.Object implements IExpression<T>, SelectionVisitable
The literal expression implementation.- Since:
- 3.2
- Author:
- Denis Stepanov
-
-
Constructor Summary
Constructors Constructor Description LiteralExpression(java.lang.Class<T> clazz)
LiteralExpression(T object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SelectionVisitor selectionVisitor)
java.lang.Class<? extends T>
getJavaType()
T
getValue()
boolean
isBoolean()
boolean
isComparable()
boolean
isNumeric()
java.lang.String
toString()
-
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
-
-
-
-
Method Detail
-
accept
public void accept(SelectionVisitor selectionVisitor)
- Specified by:
accept
in interfaceSelectionVisitable
-
getValue
public T getValue()
-
isBoolean
public boolean isBoolean()
- Specified by:
isBoolean
in interfaceIExpression<T>
- Returns:
- true if the expression is of boolean type
-
isNumeric
public boolean isNumeric()
- Specified by:
isNumeric
in interfaceIExpression<T>
- Returns:
- true if the expression is of numeric type
-
isComparable
public boolean isComparable()
- Specified by:
isComparable
in interfaceIExpression<T>
- Returns:
- true if the expression is of comparable type
-
getJavaType
@Nullable public java.lang.Class<? extends T> getJavaType()
- Specified by:
getJavaType
in interfacejakarta.persistence.TupleElement<T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-