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 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> jakarta.persistence.criteria.Expression<T>
requireComparableExpression
(jakarta.persistence.criteria.Expression<T> exp) static <T> IExpression<T>
requireIExpression
(jakarta.persistence.criteria.Expression<T> exp) static IExpression<String>
requireNumericExpression
(jakarta.persistence.criteria.Expression<?> exp) static <T> jakarta.persistence.criteria.ParameterExpression<T>
requireParameter
(jakarta.persistence.criteria.Expression<T> exp) static <T> PersistentEntitySubquery<T>
requirePersistentEntitySubquery
(jakarta.persistence.criteria.Subquery<T> subquery) static <T> PersistentPropertyPath<T>
requireProperty
(jakarta.persistence.criteria.Expression<? extends T> exp) static <T> IExpression<T>
requirePropertyOrRoot
(jakarta.persistence.criteria.Expression<T> exp) static IExpression<String>
requireStringExpression
(jakarta.persistence.criteria.Expression<?> exp)
-
Method Details
-
isNumeric
-
isBoolean
-
isComparable
-
isTextual
-
requireBoolExpressions
public static List<IExpression<Boolean>> requireBoolExpressions(Iterable<? extends jakarta.persistence.criteria.Expression<?>> restrictions) -
requireIExpression
-
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
-
hasVersionPredicate
public static boolean hasVersionPredicate(jakarta.persistence.criteria.Expression<?> predicate) -
extractPredicateParameters
public static Set<jakarta.persistence.criteria.ParameterExpression<?>> extractPredicateParameters(jakarta.persistence.criteria.Expression<?> predicate)
-