Class TrackableJpaQueryLookupStrategy
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.jpa.filtering.narrow.dynamic.TrackableJpaQueryLookupStrategy
-
public final class TrackableJpaQueryLookupStrategy extends Object
Query lookup strategy to execute finders. Converted from Spring'sJpaQueryLookupStrategy
, original authors below. Allows the introduction ofNarrowingPartTreeJpaQuery
as a viable query lookup resolution type.- Author:
- Oliver Gierke, Thomas Darimont, Mark Paluch Broadleaf, Jeff Fischer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TrackableJpaQueryLookupStrategy.AbstractQueryLookupStrategy
Base class forQueryLookupStrategy
implementations that need access to anEntityManager
.static class
TrackableJpaQueryLookupStrategy.CreateIfNotFoundQueryLookupStrategy
QueryLookupStrategy
to try to detect a declared query first (Query
, JPA named query).static class
TrackableJpaQueryLookupStrategy.CreateQueryLookupStrategy
QueryLookupStrategy
to create a query from the method name.static class
TrackableJpaQueryLookupStrategy.DeclaredQueryLookupStrategy
QueryLookupStrategy
that tries to detect a declared query declared viaQuery
annotation followed by a JPA named query lookup.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.data.repository.query.QueryLookupStrategy
create(javax.persistence.EntityManager em, org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.jpa.provider.QueryExtractor extractor, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, org.springframework.data.jpa.repository.query.EscapeCharacter escape, com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, RSQLVisitorHolder<?> rsqlVisitorHolder, JpaFiltersCriteriaBuilder catalogFiltersCriteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)
Creates aQueryLookupStrategy
for the givenEntityManager
andQueryLookupStrategy.Key
.
-
-
-
Method Detail
-
create
public static org.springframework.data.repository.query.QueryLookupStrategy create(javax.persistence.EntityManager em, @Nullable org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.jpa.provider.QueryExtractor extractor, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, org.springframework.data.jpa.repository.query.EscapeCharacter escape, com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, @Nullable RSQLVisitorHolder<?> rsqlVisitorHolder, JpaFiltersCriteriaBuilder catalogFiltersCriteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)
Creates aQueryLookupStrategy
for the givenEntityManager
andQueryLookupStrategy.Key
.- Parameters:
em
- must not be null.key
- may be null.extractor
- must not be null.evaluationContextProvider
- must not be null.escape
-- Returns:
-
-