Interface PredicateBuilder

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PredicateBuilder
Implementation of this interface can participate in the building of CriteriaQuery created by one the query builders.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    This interface allows to create subqueries in predicates without exposing the CriteriaQuery instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.persistence.criteria.Predicate
    createPredicate(jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, jakarta.persistence.criteria.From<?,?> queryRoot, FieldAccessor fieldAccessor, PredicateBuilder.SubqueryFactory subqueryFactory, Map<String,?> queryHints)
     
  • Method Details

    • createPredicate

      jakarta.persistence.criteria.Predicate createPredicate(jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, jakarta.persistence.criteria.From<?,?> queryRoot, FieldAccessor fieldAccessor, PredicateBuilder.SubqueryFactory subqueryFactory, Map<String,?> queryHints)