Class SqlSpannerQuery<T>
- java.lang.Object
-
- com.google.cloud.spring.data.spanner.repository.query.SqlSpannerQuery<T>
-
- Type Parameters:
T
- the return type of the Query Method
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
public class SqlSpannerQuery<T> extends Object
A Query Method for Spanner using SQL strings.- Since:
- 1.1
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<T>
entityType
protected SpannerQueryMethod
queryMethod
protected SpannerMappingContext
spannerMappingContext
protected SpannerTemplate
spannerTemplate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
execute(Object[] parameters)
List
executeRawResult(Object[] parameters)
SpannerQueryMethod
getQueryMethod()
-
-
-
Field Detail
-
queryMethod
protected final SpannerQueryMethod queryMethod
-
spannerTemplate
protected final SpannerTemplate spannerTemplate
-
spannerMappingContext
protected final SpannerMappingContext spannerMappingContext
-
entityType
protected final Class<T> entityType
-
-
Method Detail
-
execute
public Object execute(Object[] parameters)
- Specified by:
execute
in interfaceorg.springframework.data.repository.query.RepositoryQuery
-
getQueryMethod
public SpannerQueryMethod getQueryMethod()
- Specified by:
getQueryMethod
in interfaceorg.springframework.data.repository.query.RepositoryQuery
-
-