Class QuerydslPredicateBuilder
java.lang.Object
org.springframework.data.querydsl.binding.QuerydslPredicateBuilder
Builder assembling
Predicate out of PropertyValues.- Since:
- 1.11
- Author:
- Christoph Strobl, Oliver Gierke, Mark Paluch, Johannes Englmeier
-
Constructor Summary
ConstructorsConstructorDescriptionQuerydslPredicateBuilder(ConversionService conversionService, EntityPathResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptioncom.querydsl.core.types.PredicategetPredicate(TypeInformation<?> type, MultiValueMap<String, ?> values, QuerydslBindings bindings) static booleanisEmpty(com.querydsl.core.types.Predicate predicate) Returns whether the givenPredicaterepresents an empty predicate instance.
-
Constructor Details
-
QuerydslPredicateBuilder
- Parameters:
conversionService- must not be null.resolver- can be null.
-
-
Method Details
-
getPredicate
public com.querydsl.core.types.Predicate getPredicate(TypeInformation<?> type, MultiValueMap<String, ?> values, QuerydslBindings bindings) - Parameters:
type- the type to create a predicate for.values- the values to bind.bindings- theQuerydslBindingsfor the predicate.- Returns:
- the
Predicate.
-
isEmpty
public static boolean isEmpty(com.querydsl.core.types.Predicate predicate) Returns whether the givenPredicaterepresents an empty predicate instance.- Parameters:
predicate-- Returns:
- Since:
- 2.5.3
- See Also:
-
BooleanBuilder
-