public class HazelcastQueryLookupStrategy extends Object implements org.springframework.data.repository.query.QueryLookupStrategy
Ensures HazelcastPartTreeQuery is used for query preparation rather than KeyValuePartTreeQuery or
other alternatives.
| Constructor and Description |
|---|
HazelcastQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider,
org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations,
Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator,
com.hazelcast.core.HazelcastInstance hazelcastInstance)
Required constructor, capturing arguments for use in
resolveQuery(java.lang.reflect.Method, org.springframework.data.repository.core.RepositoryMetadata, org.springframework.data.projection.ProjectionFactory, org.springframework.data.repository.core.NamedQueries). |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.repository.query.RepositoryQuery |
resolveQuery(Method method,
org.springframework.data.repository.core.RepositoryMetadata metadata,
org.springframework.data.projection.ProjectionFactory projectionFactory,
org.springframework.data.repository.core.NamedQueries namedQueries)
Use
HazelcastPartTreeQuery for resolving queries against Hazelcast repositories. |
public HazelcastQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider,
org.springframework.data.keyvalue.core.KeyValueOperations keyValueOperations,
Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator,
com.hazelcast.core.HazelcastInstance hazelcastInstance)
Required constructor, capturing arguments for use in resolveQuery(java.lang.reflect.Method, org.springframework.data.repository.core.RepositoryMetadata, org.springframework.data.projection.ProjectionFactory, org.springframework.data.repository.core.NamedQueries).
Assertions copied from KayValueRepositoryFactory.KeyValueQUeryLookupStrategy which this class essentially
duplicates.
key - Not usedevaluationContextProvider - For evaluation of query expressionskeyValueOperations - Bean to use for Key/Value operations on Hazelcast reposqueryCreator - Likely to be HazelcastQueryCreatorhazelcastInstance - Instance of Hazelcastpublic org.springframework.data.repository.query.RepositoryQuery resolveQuery(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory projectionFactory, org.springframework.data.repository.core.NamedQueries namedQueries)
Use HazelcastPartTreeQuery for resolving queries against Hazelcast repositories.
resolveQuery in interface org.springframework.data.repository.query.QueryLookupStrategyMethod, - the query methodRepositoryMetadata, - not usedProjectionFactory, - not usedNamedQueries, - not usedCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.