Class QueryEnhancerFactory
java.lang.Object
org.springframework.data.jpa.repository.query.QueryEnhancerFactory
Encapsulates different strategies for the creation of a
QueryEnhancer from a DeclaredQuery.- Since:
- 2.7.0
- Author:
- Diego Krupitza, Greg Turnquist
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryEnhancerforQuery(org.springframework.data.jpa.repository.query.DeclaredQuery query) Creates a newQueryEnhancerfor the givenDeclaredQuery.
-
Method Details
-
forQuery
public static QueryEnhancer forQuery(org.springframework.data.jpa.repository.query.DeclaredQuery query) Creates a newQueryEnhancerfor the givenDeclaredQuery.- Parameters:
query- must not be null.- Returns:
- an implementation of
QueryEnhancerthat suits the query the most
-