T - the return type of the Query Methodpublic class PartTreeSpannerQuery<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
entityType |
protected SpannerQueryMethod |
queryMethod |
protected SpannerMappingContext |
spannerMappingContext |
protected SpannerTemplate |
spannerTemplate |
| Constructor and Description |
|---|
PartTreeSpannerQuery(Class<T> type,
SpannerQueryMethod queryMethod,
SpannerTemplate spannerTemplate,
SpannerMappingContext spannerMappingContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Object[] parameters) |
protected List |
executeRawResult(Object[] parameters) |
SpannerQueryMethod |
getQueryMethod() |
protected final SpannerQueryMethod queryMethod
protected final SpannerTemplate spannerTemplate
protected final SpannerMappingContext spannerMappingContext
protected final Class<T> entityType
public PartTreeSpannerQuery(Class<T> type, SpannerQueryMethod queryMethod, SpannerTemplate spannerTemplate, SpannerMappingContext spannerMappingContext)
type - the underlying entity typequeryMethod - the underlying query method to support.spannerTemplate - used for executing queries.spannerMappingContext - used for getting metadata about entities.public Object execute(Object[] parameters)
execute in interface org.springframework.data.repository.query.RepositoryQuerypublic SpannerQueryMethod getQueryMethod()
getQueryMethod in interface org.springframework.data.repository.query.RepositoryQueryCopyright © 2021. All rights reserved.