public interface QueryExtensionHandler extends ExtensionHandler
| Modifier and Type | Method and Description | 
|---|---|
| ExtensionResultStatusType | breakdown(Class<?> type,
         String[] config)Perform any breakdown operations. | 
| ExtensionResultStatusType | refineOrder(Class<?> type,
           String[] config,
           javax.persistence.criteria.CriteriaBuilder builder,
           javax.persistence.criteria.CriteriaQuery criteria,
           javax.persistence.criteria.Root root,
           List<javax.persistence.criteria.Order> sorts)Add sorting to the fetch query | 
| ExtensionResultStatusType | refineResults(Class<?> type,
             String[] config,
             List queryResults,
             ExtensionResultHolder<List> response)Filter the results from the database in Java | 
| ExtensionResultStatusType | refineRetrieve(Class<?> type,
              String[] config,
              javax.persistence.criteria.CriteriaBuilder builder,
              javax.persistence.criteria.CriteriaQuery criteria,
              javax.persistence.criteria.Root root,
              List<javax.persistence.criteria.Predicate> restrictions)Add additional restrictions to the fetch query | 
| ExtensionResultStatusType | setup(Class<?> type,
     String[] config)Perform any setup operations. | 
getPriority, isEnabledExtensionResultStatusType setup(Class<?> type, String[] config)
type - the class type for the query (can be null)config - pass information to the handler, perhaps to be used by the handler to determine suitability (can be null)ExtensionResultStatusType refineRetrieve(Class<?> type, String[] config, javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.CriteriaQuery criteria, javax.persistence.criteria.Root root, List<javax.persistence.criteria.Predicate> restrictions)
type - the class type for the query (can be null)config - pass information to the handler, perhaps to be used by the handler to determine suitability (can be null)builder - criteria - root - restrictions - any additional JPA criteria restrictions should be added hereExtensionResultStatusType refineOrder(Class<?> type, String[] config, javax.persistence.criteria.CriteriaBuilder builder, javax.persistence.criteria.CriteriaQuery criteria, javax.persistence.criteria.Root root, List<javax.persistence.criteria.Order> sorts)
type - the class type for the query (can be null)config - pass information to the handler, perhaps to be used by the handler to determine suitability (can be null)builder - criteria - root - sorts - any additional JPA order expressions should be added hereExtensionResultStatusType refineResults(Class<?> type, String[] config, List queryResults, ExtensionResultHolder<List> response)
type - the class type for the query (can be null)config - pass information to the handler, perhaps to be used by the handler to determine suitability (can be null)queryResults - the results of the fetch query from the databaseresponse - the container for the filtered resultsExtensionResultStatusType breakdown(Class<?> type, String[] config)
type - the class type for the query (can be null)config - pass information to the handler, perhaps to be used by the handler to determine suitability (can be null)Copyright © 2020. All rights reserved.