public interface QueryModificationService
QueryCriteriaUtil implemenations.| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(String listId) |
<R> javax.persistence.criteria.Predicate |
createPredicate(QueryCriteria criteria,
javax.persistence.criteria.CriteriaQuery<R> query,
javax.persistence.criteria.CriteriaBuilder builder)
Create a specific
Predicate based on the given QueryCriteria. |
void |
optimizeCriteria(QueryWhere queryWhere)
This optimizes the
QueryWhere criteria. |
boolean accepts(String listId)
listId - The id of the QueryCriteriaQueryModificationService can be used for the given listId.void optimizeCriteria(QueryWhere queryWhere)
QueryWhere criteria.queryWhere - The QueryWhere instance with the abstract query information<R> javax.persistence.criteria.Predicate createPredicate(QueryCriteria criteria, javax.persistence.criteria.CriteriaQuery<R> query, javax.persistence.criteria.CriteriaBuilder builder)
Predicate based on the given QueryCriteria.criteria - The QueryCriteria with the abstract query criteria information.query - The CriteriaQuery instance being built.builder - The CriteriaBuilder used to create the CriteriaQuery.Predicate that will be added to the CriteriaQuery instance.Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.