Class QueryEnhancerFactory

java.lang.Object
org.springframework.data.jpa.repository.query.QueryEnhancerFactory

public final class QueryEnhancerFactory extends Object
Encapsulates different strategies for the creation of a QueryEnhancer from a DeclaredQuery.
Since:
2.7.0
Author:
Diego Krupitza, Greg Turnquist, Mark Paluch
  • Method Details

    • forQuery

      public static QueryEnhancer forQuery(org.springframework.data.jpa.repository.query.DeclaredQuery query)
      Creates a new QueryEnhancer for the given DeclaredQuery.
      Parameters:
      query - must not be null.
      Returns:
      an implementation of QueryEnhancer that suits the query the most