-
- All Implemented Interfaces:
-
java.io.Serializable
public interface JPAFilter implements Serializable
A JPA filter. See concrete implementation classes for further information.
-
-
Method Summary
Modifier and Type Method Description abstract PredicatetoPredicate(CriteriaBuilder cb, Root<?> root)Converts this filter to a JPA Criteria API Predicate. JPAFilternot()Negates this filter. JPAFilterand(JPAFilter other)Produces a filter which only matches rows which are matched both by this and the other filter. JPAFilteror(JPAFilter other)Produces a filter which matches rows which are matched by either this or the other filter. -
-
Method Detail
-
toPredicate
abstract Predicate toPredicate(CriteriaBuilder cb, Root<?> root)
Converts this filter to a JPA Criteria API Predicate.
- Parameters:
cb- the criteria builder which contains factory methods for various Predicates.root- creates Expressions for fields
-
and
JPAFilter and(JPAFilter other)
Produces a filter which only matches rows which are matched both by this and the other filter.
- Parameters:
other- rows must match also this filter.
-
-
-
-