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
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.
|
java.lang.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(java.lang.String fieldName,
java.lang.Object value) |
TransactionSelector |
setBegin(TransactionOptions begin)
Begin a new transaction and execute this read or SQL query in it.
|
TransactionSelector |
setId(java.lang.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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public TransactionOptions getBegin()
null
for nonepublic TransactionSelector setBegin(TransactionOptions begin)
begin
- begin or null
for nonepublic java.lang.String getId()
null
for nonedecodeId()
public byte[] decodeId()
null
for nonegetId()
public TransactionSelector setId(java.lang.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(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public TransactionSelector clone()
clone
in class com.google.api.client.json.GenericJson