Class SpannerQueryLookupStrategy
java.lang.Object
com.google.cloud.spring.data.spanner.repository.query.SpannerQueryLookupStrategy
- All Implemented Interfaces:
org.springframework.data.repository.query.QueryLookupStrategy
public class SpannerQueryLookupStrategy
extends Object
implements org.springframework.data.repository.query.QueryLookupStrategy
Determines the type of the user's custom-defined Query Methods and instantiates their
implementations.
- Since:
- 1.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.repository.query.QueryLookupStrategy
org.springframework.data.repository.query.QueryLookupStrategy.Key
-
Constructor Summary
ConstructorDescriptionSpannerQueryLookupStrategy
(SpannerMappingContext spannerMappingContext, SpannerTemplate spannerTemplate, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, org.springframework.expression.spel.standard.SpelExpressionParser expressionParser) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.repository.query.RepositoryQuery
resolveQuery
(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory, org.springframework.data.repository.core.NamedQueries namedQueries)
-
Constructor Details
-
SpannerQueryLookupStrategy
public SpannerQueryLookupStrategy(SpannerMappingContext spannerMappingContext, SpannerTemplate spannerTemplate, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider evaluationContextProvider, org.springframework.expression.spel.standard.SpelExpressionParser expressionParser)
-
-
Method Details
-
resolveQuery
public org.springframework.data.repository.query.RepositoryQuery resolveQuery(Method method, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory, org.springframework.data.repository.core.NamedQueries namedQueries) - Specified by:
resolveQuery
in interfaceorg.springframework.data.repository.query.QueryLookupStrategy
-