Package | Description |
---|---|
org.springframework.cloud.gcp.data.spanner.core |
Modifier and Type | Method and Description |
---|---|
SpannerReadOptions |
SpannerReadOptions.addReadOption(com.google.cloud.spanner.Options.ReadOption readOption) |
SpannerReadOptions |
SpannerReadOptions.setIndex(String index) |
SpannerReadOptions |
SpannerReadOptions.setTimestamp(com.google.cloud.Timestamp timestamp) |
SpannerReadOptions |
SpannerReadOptions.unsetIndex() |
SpannerReadOptions |
SpannerReadOptions.unsetTimestamp() |
Modifier and Type | Method and Description |
---|---|
<T> T |
SpannerTemplate.performReadOnlyTransaction(Function<SpannerOperations,T> operations,
SpannerReadOptions readOptions) |
<T> T |
SpannerOperations.performReadOnlyTransaction(Function<SpannerOperations,T> operations,
SpannerReadOptions readOptions)
Performs multiple read-only operations in a single transaction.
|
<T> List<T> |
SpannerTemplate.read(Class<T> entityClass,
com.google.cloud.spanner.KeySet keys,
SpannerReadOptions options) |
<T> List<T> |
SpannerOperations.read(Class<T> entityClass,
com.google.cloud.spanner.KeySet keys,
SpannerReadOptions options)
Finds objects stored from their keys.
|
<T> T |
SpannerTemplate.read(Class<T> entityClass,
com.google.cloud.spanner.Key key,
SpannerReadOptions options) |
<T> T |
SpannerOperations.read(Class<T> entityClass,
com.google.cloud.spanner.Key key,
SpannerReadOptions options)
Finds a single stored object using a key.
|
<T> List<T> |
SpannerTemplate.readAll(Class<T> entityClass,
SpannerReadOptions options) |
<T> List<T> |
SpannerOperations.readAll(Class<T> entityClass,
SpannerReadOptions options)
Finds all objects of the given type.
|
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.