Class 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
    • Constructor Detail

      • LiteralExpression

        public LiteralExpression​(java.lang.Class<T> clazz)
      • LiteralExpression

        public LiteralExpression​(@Nullable
                                 T object)
    • Method Detail

      • 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 java.lang.Class<? extends T> getJavaType()
        Specified by:
        getJavaType in interface jakarta.persistence.TupleElement<T>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object