public interface CriteriaTranslatorEventHandler
|Modifier and Type||Method and Description|
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.
ceilingEntity- the entity currently being fetched
filterMappings- the DTO of filters harvested from
criteriaBuilder- used for adding additional restrictions
original- the Hibernate root from which restriction paths start from
restrictions- existing list of restrictions that have not yet been applied to criteria
sorts- 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 sorts
CriteriaTranslatorImpl#addRestrictions(String, List, CriteriaBuilder, Root, List, List, CriteriaQuery)}
Copyright © 2019. All rights reserved.