public interface CriteriaTranslatorEventHandler
| Modifier and Type | Method and Description |
|---|---|
void |
addRestrictions(String ceilingEntity,
List<FilterMapping> filterMappings,
javax.persistence.criteria.CriteriaBuilder criteriaBuilder,
javax.persistence.criteria.Root original,
List<javax.persistence.criteria.Predicate> restrictions,
List<javax.persistence.criteria.Order> sorts,
javax.persistence.criteria.CriteriaQuery criteria)
Allows the ability to attach additional criteria to the given criteria that has already been created by the
given filterMappings.
|
void addRestrictions(String ceilingEntity, List<FilterMapping> filterMappings, javax.persistence.criteria.CriteriaBuilder criteriaBuilder, javax.persistence.criteria.Root original, List<javax.persistence.criteria.Predicate> restrictions, List<javax.persistence.criteria.Order> sorts, javax.persistence.criteria.CriteriaQuery criteria)
Allows the ability to attach additional criteria to the given criteria that has already been created by the given filterMappings. Since translation has already occurred from the filterMappings into the given restrictions, implementers should attach additional criteria to that list rather than attach to criteria directly.
These
ceilingEntity - the entity currently being fetchedfilterMappings - the DTO of filters harvested from FieldPersistenceProviderscriteriaBuilder - used for adding additional restrictionsoriginal - the Hibernate root from which restriction paths start fromrestrictions - existing list of restrictions that have not yet been applied to criteriasorts - list of sorts that have not yet been applied to criteria>criteria - the final criteria without any of the restrictions or sorts applied to it. Additional
Predicates should not be attached to this directly but rather to the given restrictions or sortsCriteriaTranslatorImpl#addRestrictions(String, List, CriteriaBuilder, Root, List, List, CriteriaQuery)}Copyright © 2017. All rights reserved.