E - The generic base entity type.@FunctionalInterface protected static interface BaseEntityService.QueryBuilder<E>
BaseEntityService.getPage(Page, boolean) methods.
You do not need this interface directly. Just supply a lambda. Below is an usage example:
@Stateless
public class YourEntityService extends BaseEntityService<YourEntity> {
public void getPageOfFooType(Page page, boolean count) {
return getPage(page, count, (criteriaBuilder, query, root) -> {
query.where(criteriaBuilder.equal(root.get("type"), Type.FOO));
});
}
}
| Modifier and Type | Method and Description |
|---|---|
void |
build(CriteriaBuilder criteriaBuilder,
AbstractQuery<E> query,
Root<E> root) |
void build(CriteriaBuilder criteriaBuilder, AbstractQuery<E> query, Root<E> root)
Copyright © 2015–2020 OmniFaces. All rights reserved.