Interface SearchOperator

All Known Implementing Classes:
DefaultSearchOperator
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 SearchOperator
Operator that will be used when adding value to the query.
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.persistence.criteria.Predicate
    asPredicate(jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, jakarta.persistence.criteria.Path<?> path, Object value)
    Returns predicate for query.
  • Method Details

    • asPredicate

      jakarta.persistence.criteria.Predicate asPredicate(jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder, jakarta.persistence.criteria.Path<?> path, Object value)
      Returns predicate for query.
      Parameters:
      criteriaBuilder - criteria builder
      path - property path in relation to root query entity
      value - property value
      Returns:
      predicate that will be added to query