Interface QueryModificationService


  • public interface QueryModificationService
    Implementations of this service are instantiated when available in order to extend the capabilities of particular QueryCriteriaUtil implemenations.
    • Method Detail

      • optimizeCriteria

        void optimizeCriteria​(QueryWhere queryWhere)
        This optimizes the QueryWhere criteria.
        Parameters:
        queryWhere - The QueryWhere instance with the abstract query information
      • createPredicate

        <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.
        Parameters:
        criteria - The QueryCriteria with the abstract query criteria information.
        query - The CriteriaQuery instance being built.
        builder - The CriteriaBuilder used to create the CriteriaQuery.
        Returns:
        The Predicate that will be added to the CriteriaQuery instance.