Class PartTreeSpannerQuery<T>
java.lang.Object
com.google.cloud.spring.data.spanner.repository.query.PartTreeSpannerQuery<T>
- Type Parameters:
T
- the return type of the Query Method
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
Implementation of a Spanner Query Method that handles all Part-tree / name-convention query
methods.
- Since:
- 1.1
-
Field Summary
Modifier and TypeFieldDescriptionprotected final SpannerQueryMethod
protected final SpannerMappingContext
protected final SpannerTemplate
-
Constructor Summary
ConstructorDescriptionPartTreeSpannerQuery
(Class<T> type, SpannerQueryMethod queryMethod, SpannerTemplate spannerTemplate, SpannerMappingContext spannerMappingContext) Constructor. -
Method Summary
-
Field Details
-
queryMethod
-
spannerTemplate
-
spannerMappingContext
-
entityType
-
-
Constructor Details
-
PartTreeSpannerQuery
public PartTreeSpannerQuery(Class<T> type, SpannerQueryMethod queryMethod, SpannerTemplate spannerTemplate, SpannerMappingContext spannerMappingContext) Constructor.- Parameters:
type
- the underlying entity typequeryMethod
- the underlying query method to support.spannerTemplate
- used for executing queries.spannerMappingContext
- used for getting metadata about entities.
-
-
Method Details
-
executeRawResult
-
execute
- Specified by:
execute
in interfaceorg.springframework.data.repository.query.RepositoryQuery
-
getQueryMethod
- Specified by:
getQueryMethod
in interfaceorg.springframework.data.repository.query.RepositoryQuery
-