Class TrackableJpaQueryLookupStrategy.DeclaredQueryLookupStrategy
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.jpa.filtering.narrow.dynamic.TrackableJpaQueryLookupStrategy.AbstractQueryLookupStrategy
-
- com.broadleafcommerce.data.tracking.jpa.filtering.narrow.dynamic.TrackableJpaQueryLookupStrategy.DeclaredQueryLookupStrategy
-
- All Implemented Interfaces:
org.springframework.data.repository.query.QueryLookupStrategy
- Enclosing class:
- TrackableJpaQueryLookupStrategy
public static class TrackableJpaQueryLookupStrategy.DeclaredQueryLookupStrategy extends TrackableJpaQueryLookupStrategy.AbstractQueryLookupStrategy
QueryLookupStrategy
that tries to detect a declared query declared viaQuery
annotation followed by a JPA named query lookup.- Author:
- Oliver Gierke, Thomas Darimont
-
-
Constructor Summary
Constructors Constructor Description DeclaredQueryLookupStrategy(javax.persistence.EntityManager em, org.springframework.data.jpa.provider.QueryExtractor extractor, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
Creates a new JpaQueryLookupStrategy.DeclaredQueryLookupStrategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.data.repository.query.RepositoryQuery
resolveQuery(org.springframework.data.jpa.repository.query.JpaQueryMethod method, javax.persistence.EntityManager em, org.springframework.data.repository.core.NamedQueries namedQueries, org.springframework.data.repository.core.RepositoryMetadata metadata)
-
Methods inherited from class com.broadleafcommerce.data.tracking.jpa.filtering.narrow.dynamic.TrackableJpaQueryLookupStrategy.AbstractQueryLookupStrategy
resolveQuery
-
-
-
-
Constructor Detail
-
DeclaredQueryLookupStrategy
public DeclaredQueryLookupStrategy(javax.persistence.EntityManager em, org.springframework.data.jpa.provider.QueryExtractor extractor, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider)
Creates a new JpaQueryLookupStrategy.DeclaredQueryLookupStrategy.- Parameters:
em
-extractor
-evaluationContextProvider
-
-
-
Method Detail
-
resolveQuery
protected org.springframework.data.repository.query.RepositoryQuery resolveQuery(org.springframework.data.jpa.repository.query.JpaQueryMethod method, javax.persistence.EntityManager em, org.springframework.data.repository.core.NamedQueries namedQueries, org.springframework.data.repository.core.RepositoryMetadata metadata)
- Specified by:
resolveQuery
in classTrackableJpaQueryLookupStrategy.AbstractQueryLookupStrategy
-
-