T
- the entity type of the repositoryI
- the id type of the entitypublic interface SpannerRepository<T,I>
extends org.springframework.data.repository.PagingAndSortingRepository<T,I>
Modifier and Type | Method and Description |
---|---|
SpannerOperations |
getSpannerTemplate()
Gets a
SpannerOperations , which allows more-direct access to Google Cloud Spanner
functions. |
<A> A |
performReadOnlyTransaction(Function<SpannerRepository<T,I>,A> operations)
Performs multiple read-only operations in a single transaction.
|
<A> A |
performReadWriteTransaction(Function<SpannerRepository<T,I>,A> operations)
Performs multiple read and write operations in a single transaction.
|
SpannerOperations getSpannerTemplate()
SpannerOperations
, which allows more-direct access to Google Cloud Spanner
functions.<A> A performReadWriteTransaction(Function<SpannerRepository<T,I>,A> operations)
A
- the final return type of the operations.operations
- the function representing the operations to perform using a
SpannerRepository based on a single transaction.<A> A performReadOnlyTransaction(Function<SpannerRepository<T,I>,A> operations)
A
- the final return type of the operations.operations
- the function representing the operations to perform using a
SpannerRepository based on a single transaction.Copyright © 2021. All rights reserved.