Interface QueryRewriterProvider
- All Known Implementing Classes:
BeanFactoryQueryRewriterProvider
,BeanManagerQueryRewriterProvider
public interface QueryRewriterProvider
Provide a
QueryRewriter
based upon the JpaQueryMethod
. QueryRewriter
instances may be
contextual or plain objects that are not attached to a bean factory or CDI context.- Since:
- 3.0
- Author:
- Greg Turnquist, Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetQueryRewriter
(JpaQueryMethod method) Obtain an instance ofQueryRewriter
for aJpaQueryMethod
.static QueryRewriterProvider
simple()
Return a simpleQueryRewriterProvider
that usesBeanUtils.instantiateClass(Class)
to obtain aQueryRewriter
instance.
-
Method Details
-
simple
Return a simpleQueryRewriterProvider
that usesBeanUtils.instantiateClass(Class)
to obtain aQueryRewriter
instance.- Returns:
- a simple
QueryRewriterProvider
.
-
getQueryRewriter
Obtain an instance ofQueryRewriter
for aJpaQueryMethod
.- Parameters:
method
- the underlying JPA query method.- Returns:
- a Java bean that implements
QueryRewriter
.
-