public JPAFilter
A JPA filter. See concrete implementation classes for further information.
| Modifier and Type | Interface and Description |
|---|---|
static class |
JPAFilter.DefaultImpls
A JPA filter. See concrete implementation classes for further information.
|
| Modifier and Type | Method and Description |
|---|---|
JPAFilter |
and(JPAFilter other)
Produces a filter which only matches rows which are matched both by this and the other filter.
|
JPAFilter |
not()
Negates this filter.
|
JPAFilter |
or(JPAFilter other)
Produces a filter which matches rows which are matched by either this or the other filter.
|
javax.persistence.criteria.Predicate |
toPredicate(javax.persistence.criteria.CriteriaBuilder cb,
javax.persistence.criteria.Root<?> root)
Converts this filter to a JPA Criteria API Predicate.
|
javax.persistence.criteria.Predicate toPredicate(javax.persistence.criteria.CriteriaBuilder cb,
javax.persistence.criteria.Root<?> root)
Converts this filter to a JPA Criteria API Predicate.
cb - the criteria builder which contains factory methods for various Predicates.root - creates Expressions for fieldsJPAFilter not()
Negates this filter.
JPAFilter and(JPAFilter other)
Produces a filter which only matches rows which are matched both by this and the other filter.
other - rows must match also this filter.this and other