public class PartTreeSpannerQuery<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
entityType |
protected org.springframework.data.repository.query.QueryMethod |
queryMethod |
protected SpannerMappingContext |
spannerMappingContext |
protected SpannerOperations |
spannerOperations |
| Constructor and Description |
|---|
PartTreeSpannerQuery(Class<T> type,
org.springframework.data.repository.query.QueryMethod queryMethod,
SpannerOperations spannerOperations,
SpannerMappingContext spannerMappingContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
applyProjection(List<T> rawResult) |
Object |
execute(Object[] parameters) |
protected List<T> |
executeRawResult(Object[] parameters) |
org.springframework.data.repository.query.QueryMethod |
getQueryMethod() |
protected final org.springframework.data.repository.query.QueryMethod queryMethod
protected final SpannerOperations spannerOperations
protected final SpannerMappingContext spannerMappingContext
protected final Class<T> entityType
public PartTreeSpannerQuery(Class<T> type, org.springframework.data.repository.query.QueryMethod queryMethod, SpannerOperations spannerOperations, SpannerMappingContext spannerMappingContext)
type - the underlying entity typequeryMethod - the underlying query method to support.spannerOperations - 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 org.springframework.data.repository.query.QueryMethod getQueryMethod()
getQueryMethod in interface org.springframework.data.repository.query.RepositoryQueryCopyright © 2018 Pivotal Software, Inc.. All rights reserved.