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, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryEnhancer
forQuery
(org.springframework.data.jpa.repository.query.DeclaredQuery query) Creates a newQueryEnhancer
for the givenDeclaredQuery
.
-
Method Details
-
forQuery
public static QueryEnhancer forQuery(org.springframework.data.jpa.repository.query.DeclaredQuery query) Creates a newQueryEnhancer
for the givenDeclaredQuery
.- Parameters:
query
- must not be null.- Returns:
- an implementation of
QueryEnhancer
that suits the query the most
-