Class CriteriaUtils

java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.CriteriaUtils

@Internal public final class CriteriaUtils extends Object
Criteria util class.
Since:
3.2
Author:
Denis Stepanov
  • Method Details

    • isNumeric

      public static boolean isNumeric(@NonNull @NonNull Class<?> clazz)
    • isBoolean

      public static boolean isBoolean(@NonNull @NonNull Class<?> clazz)
    • isComparable

      public static boolean isComparable(@NonNull @NonNull Class<?> clazz)
    • requireBoolExpressions

      public static List<IExpression<Boolean>> requireBoolExpressions(Iterable<? extends jakarta.persistence.criteria.Expression<?>> restrictions)
    • requireBoolExpression

      public static IExpression<Boolean> requireBoolExpression(jakarta.persistence.criteria.Expression<?> exp)
    • requireBoolProperty

      public static <T> PersistentPropertyPath<T> requireBoolProperty(jakarta.persistence.criteria.Expression<Boolean> exp)
    • requireNumericProperty

      public static <T> PersistentPropertyPath<T> requireNumericProperty(jakarta.persistence.criteria.Expression<T> exp)
    • requireComparableProperty

      public static <T> PersistentPropertyPath<T> requireComparableProperty(jakarta.persistence.criteria.Expression<T> exp)
    • requireComparablePropertyParameterOrLiteral

      public static <T> jakarta.persistence.criteria.Expression<T> requireComparablePropertyParameterOrLiteral(jakarta.persistence.criteria.Expression<T> exp)
    • requireNumericPropertyParameterOrLiteral

      public static <T> jakarta.persistence.criteria.Expression<T> requireNumericPropertyParameterOrLiteral(jakarta.persistence.criteria.Expression<T> exp)
    • requireParameter

      public static <T> jakarta.persistence.criteria.ParameterExpression<T> requireParameter(jakarta.persistence.criteria.Expression<T> exp)
    • requireProperty

      public static <T> PersistentPropertyPath<T> requireProperty(jakarta.persistence.criteria.Expression<? extends T> exp)
    • requirePropertyParameterOrLiteral

      public static <T> jakarta.persistence.criteria.Expression<T> requirePropertyParameterOrLiteral(jakarta.persistence.criteria.Expression<T> exp)
    • requirePropertyOrRoot

      public static <T> IExpression<T> requirePropertyOrRoot(jakarta.persistence.criteria.Expression<T> exp)
    • notSupportedOperation

      public static IllegalStateException notSupportedOperation()
    • hasVersionPredicate

      public static boolean hasVersionPredicate(jakarta.persistence.criteria.Expression<?> predicate)
    • extractPredicateParameters

      public static Set<jakarta.persistence.criteria.ParameterExpression<?>> extractPredicateParameters(jakarta.persistence.criteria.Expression<?> predicate)