Class QuerydslPredicateBuilder

java.lang.Object
org.springframework.data.querydsl.binding.QuerydslPredicateBuilder

public class QuerydslPredicateBuilder extends Object
Builder assembling Predicate out of PropertyValues.
Since:
1.11
Author:
Christoph Strobl, Oliver Gierke, Mark Paluch, Johannes Englmeier
  • Constructor Details

    • QuerydslPredicateBuilder

      public QuerydslPredicateBuilder(org.springframework.core.convert.ConversionService conversionService, EntityPathResolver resolver)
      Creates a new QuerydslPredicateBuilder for the given ConversionService and EntityPathResolver.
      Parameters:
      conversionService - must not be null.
      resolver - can be null.
  • Method Details

    • getPredicate

      public com.querydsl.core.types.Predicate getPredicate(TypeInformation<?> type, org.springframework.util.MultiValueMap<String,?> values, QuerydslBindings bindings)
      Creates a Querydsl Predicate for the given values, QuerydslBindings on the given TypeInformation.
      Parameters:
      type - the type to create a predicate for.
      values - the values to bind.
      bindings - the QuerydslBindings for the predicate.
      Returns:
      the Predicate.
    • isEmpty

      public static boolean isEmpty(com.querydsl.core.types.Predicate predicate)
      Returns whether the given Predicate represents an empty predicate instance.
      Parameters:
      predicate -
      Returns:
      Since:
      2.5.3
      See Also:
      • BooleanBuilder