public final class TransactionSelector
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
TransactionSelector() |
Modifier and Type | Method and Description |
---|---|
TransactionSelector |
clone() |
byte[] |
decodeId()
Execute the read or SQL query in a previously-started transaction.
|
TransactionSelector |
encodeId(byte[] id)
Execute the read or SQL query in a previously-started transaction.
|
TransactionOptions |
getBegin()
Begin a new transaction and execute this read or SQL query in it.
|
String |
getId()
Execute the read or SQL query in a previously-started transaction.
|
TransactionOptions |
getSingleUse()
Execute the read or SQL query in a temporary transaction.
|
TransactionSelector |
set(String fieldName,
Object value) |
TransactionSelector |
setBegin(TransactionOptions begin)
Begin a new transaction and execute this read or SQL query in it.
|
TransactionSelector |
setId(String id)
Execute the read or SQL query in a previously-started transaction.
|
TransactionSelector |
setSingleUse(TransactionOptions singleUse)
Execute the read or SQL query in a temporary transaction.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public TransactionOptions getBegin()
null
for nonepublic TransactionSelector setBegin(TransactionOptions begin)
begin
- begin or null
for nonepublic String getId()
null
for nonedecodeId()
public byte[] decodeId()
null
for nonegetId()
public TransactionSelector setId(String id)
id
- id or null
for none#encodeId()
public TransactionSelector encodeId(byte[] id)
The value is encoded Base64 or {@code null} for none.
public TransactionOptions getSingleUse()
null
for nonepublic TransactionSelector setSingleUse(TransactionOptions singleUse)
singleUse
- singleUse or null
for nonepublic TransactionSelector set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public TransactionSelector clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.