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)
    • isTextual

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

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

      public static <T> IExpression<T> requireIExpression(jakarta.persistence.criteria.Expression<T> exp)
    • requirePersistentEntitySubquery

      public static <T> PersistentEntitySubquery<T> requirePersistentEntitySubquery(jakarta.persistence.criteria.Subquery<T> subquery)
    • requireNumericExpression

      public static IExpression<String> requireNumericExpression(jakarta.persistence.criteria.Expression<?> exp)
    • requireStringExpression

      public static IExpression<String> requireStringExpression(jakarta.persistence.criteria.Expression<?> exp)
    • requireComparableExpression

      public static <T> jakarta.persistence.criteria.Expression<T> requireComparableExpression(jakarta.persistence.criteria.Expression<T> exp)
    • requireBoolExpression

      public static IExpression<Boolean> requireBoolExpression(jakarta.persistence.criteria.Expression<?> 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)
    • 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)