public final class TransactionOptions
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 |
---|
TransactionOptions() |
Modifier and Type | Method and Description |
---|---|
TransactionOptions |
clone() |
Boolean |
getExcludeTxnFromChangeStreams()
When `exclude_txn_from_change_streams` is set to `true`, it prevents read or write transactions
from being tracked in change streams.
|
String |
getIsolationLevel()
Isolation level for the transaction.
|
PartitionedDml |
getPartitionedDml()
Partitioned DML transaction.
|
ReadOnly |
getReadOnly()
Transaction does not write.
|
ReadWrite |
getReadWrite()
Transaction may write.
|
TransactionOptions |
set(String fieldName,
Object value) |
TransactionOptions |
setExcludeTxnFromChangeStreams(Boolean excludeTxnFromChangeStreams)
When `exclude_txn_from_change_streams` is set to `true`, it prevents read or write transactions
from being tracked in change streams.
|
TransactionOptions |
setIsolationLevel(String isolationLevel)
Isolation level for the transaction.
|
TransactionOptions |
setPartitionedDml(PartitionedDml partitionedDml)
Partitioned DML transaction.
|
TransactionOptions |
setReadOnly(ReadOnly readOnly)
Transaction does not write.
|
TransactionOptions |
setReadWrite(ReadWrite readWrite)
Transaction may write.
|
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 Boolean getExcludeTxnFromChangeStreams()
null
for nonepublic TransactionOptions setExcludeTxnFromChangeStreams(Boolean excludeTxnFromChangeStreams)
excludeTxnFromChangeStreams
- excludeTxnFromChangeStreams or null
for nonepublic String getIsolationLevel()
null
for nonepublic TransactionOptions setIsolationLevel(String isolationLevel)
isolationLevel
- isolationLevel or null
for nonepublic PartitionedDml getPartitionedDml()
null
for nonepublic TransactionOptions setPartitionedDml(PartitionedDml partitionedDml)
partitionedDml
- partitionedDml or null
for nonepublic ReadOnly getReadOnly()
null
for nonepublic TransactionOptions setReadOnly(ReadOnly readOnly)
readOnly
- readOnly or null
for nonepublic ReadWrite getReadWrite()
null
for nonepublic TransactionOptions setReadWrite(ReadWrite readWrite)
readWrite
- readWrite or null
for nonepublic TransactionOptions set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public TransactionOptions clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.