Package | Description |
---|---|
com.google.cloud.spanner.v1 |
The interfaces provided are listed below, along with usage samples.
|
com.google.spanner.v1 |
Modifier and Type | Method and Description |
---|---|
Transaction |
SpannerClient.beginTransaction(SessionName session,
TransactionOptions options)
Begins a new transaction.
|
CommitResponse |
SpannerClient.commit(SessionName session,
ByteString transactionId,
List<Mutation> mutations)
Commits a transaction.
|
CommitResponse |
SpannerClient.commit(SessionName session,
TransactionOptions singleUseTransaction,
List<Mutation> mutations)
Commits a transaction.
|
void |
SpannerClient.deleteSession(SessionName name)
Ends a session, releasing server resources associated with it.
|
Session |
SpannerClient.getSession(SessionName name)
Gets a session.
|
void |
SpannerClient.rollback(SessionName session,
ByteString transactionId)
Rolls back a transaction, releasing any locks it holds.
|
Modifier and Type | Method and Description |
---|---|
SessionName |
SessionName.Builder.build() |
static SessionName |
SessionName.of(String project,
String instance,
String database,
String session) |
static SessionName |
SessionName.parse(String formattedString) |
Modifier and Type | Method and Description |
---|---|
static List<SessionName> |
SessionName.parseList(List<String> formattedStrings) |
Modifier and Type | Method and Description |
---|---|
static List<String> |
SessionName.toStringList(List<SessionName> values) |
Copyright © 2022 Google LLC. All rights reserved.