Class CriteriaUtils
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.CriteriaUtils
Criteria util class.
- Since:
- 3.2
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<jakarta.persistence.criteria.ParameterExpression<?>>
extractPredicateParameters
(jakarta.persistence.criteria.Expression<?> predicate) static boolean
hasVersionPredicate
(jakarta.persistence.criteria.Expression<?> predicate) static boolean
static boolean
isComparable
(@NonNull Class<?> clazz) static boolean
static IllegalStateException
static IExpression<Boolean>
requireBoolExpression
(jakarta.persistence.criteria.Expression<?> exp) static List<IExpression<Boolean>>
requireBoolExpressions
(Iterable<? extends jakarta.persistence.criteria.Expression<?>> restrictions) static <T> PersistentPropertyPath<T>
requireBoolProperty
(jakarta.persistence.criteria.Expression<Boolean> exp) static <T> PersistentPropertyPath<T>
requireComparableProperty
(jakarta.persistence.criteria.Expression<T> exp) static <T> jakarta.persistence.criteria.Expression<T>
requireComparablePropertyParameterOrLiteral
(jakarta.persistence.criteria.Expression<T> exp) static <T> PersistentPropertyPath<T>
requireNumericProperty
(jakarta.persistence.criteria.Expression<T> exp) static <T> jakarta.persistence.criteria.Expression<T>
requireNumericPropertyParameterOrLiteral
(jakarta.persistence.criteria.Expression<T> exp) static <T> jakarta.persistence.criteria.ParameterExpression<T>
requireParameter
(jakarta.persistence.criteria.Expression<T> exp) static <T> PersistentPropertyPath<T>
requireProperty
(jakarta.persistence.criteria.Expression<? extends T> exp) static <T> IExpression<T>
requirePropertyOrRoot
(jakarta.persistence.criteria.Expression<T> exp) static <T> jakarta.persistence.criteria.Expression<T>
requirePropertyParameterOrLiteral
(jakarta.persistence.criteria.Expression<T> exp)
-
Method Details
-
isNumeric
-
isBoolean
-
isComparable
-
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
-
hasVersionPredicate
public static boolean hasVersionPredicate(jakarta.persistence.criteria.Expression<?> predicate) -
extractPredicateParameters
public static Set<jakarta.persistence.criteria.ParameterExpression<?>> extractPredicateParameters(jakarta.persistence.criteria.Expression<?> predicate)
-