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
Constructors Constructor Description SpannerQueryMethod(Method queryMethod, org.springframework.data.repository.core.RepositoryMetadata metadata, org.springframework.data.projection.ProjectionFactory factory)
Creates a newQueryMethod
from the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasAnnotatedQuery()
Returns whether the method has an annotated query.-
Methods inherited from class org.springframework.data.repository.query.QueryMethod
createParameters, getDomainClass, getEntityInformation, getName, getNamedQueryName, getParameters, getResultProcessor, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuery, toString
-
-
-
-
Constructor Detail
-
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.
-
-