Class SpannerQueryMethod
java.lang.Object
org.springframework.data.repository.query.QueryMethod
com.google.cloud.spring.data.spanner.repository.query.SpannerQueryMethod
public class SpannerQueryMethod
extends org.springframework.data.repository.query.QueryMethod
A Query Method for Spanner.
- Since:
- 1.1
-
Constructor Summary
ConstructorDescriptionSpannerQueryMethod
(Method queryMethod, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory) Creates a newQueryMethod
from the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the method has an annotated query.Methods inherited from class org.springframework.data.repository.query.QueryMethod
createParameters, createParameters, getDomainClass, getEntityInformation, getName, getNamedQueryName, getParameters, getResultProcessor, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isScrollQuery, isSliceQuery, isStreamQuery, toString
-
Constructor Details
-
SpannerQueryMethod
public SpannerQueryMethod(Method queryMethod, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory) Creates a newQueryMethod
from the given parameters. Looks up the correct query to use for following invocations of the method given.- Parameters:
queryMethod
- must not be null.metadata
- must not be null.factory
- must not be null.
-
-
Method Details
-
hasAnnotatedQuery
public boolean hasAnnotatedQuery()Returns whether the method has an annotated query.- Returns:
- true this query method has annotation that holds the query string.
-