Package com.google.spanner.v1
Interface TransactionSelectorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TransactionSelector,TransactionSelector.Builder
public interface TransactionSelectorOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetBegin()Begin a new transaction and execute this read or SQL query in it.Begin a new transaction and execute this read or SQL query in it.com.google.protobuf.ByteStringgetId()Execute the read or SQL query in a previously-started transaction.Execute the read or SQL query in a temporary transaction.Execute the read or SQL query in a temporary transaction.booleanhasBegin()Begin a new transaction and execute this read or SQL query in it.booleanhasId()Execute the read or SQL query in a previously-started transaction.booleanExecute the read or SQL query in a temporary transaction.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasSingleUse
boolean hasSingleUse()Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1;- Returns:
- Whether the singleUse field is set.
-
getSingleUse
TransactionOptions getSingleUse()Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1;- Returns:
- The singleUse.
-
getSingleUseOrBuilder
TransactionOptionsOrBuilder getSingleUseOrBuilder()Execute the read or SQL query in a temporary transaction. This is the most efficient way to execute a transaction that consists of a single SQL query.
.google.spanner.v1.TransactionOptions single_use = 1; -
hasId
boolean hasId()Execute the read or SQL query in a previously-started transaction.
bytes id = 2;- Returns:
- Whether the id field is set.
-
getId
com.google.protobuf.ByteString getId()Execute the read or SQL query in a previously-started transaction.
bytes id = 2;- Returns:
- The id.
-
hasBegin
boolean hasBegin()Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3;- Returns:
- Whether the begin field is set.
-
getBegin
TransactionOptions getBegin()Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3;- Returns:
- The begin.
-
getBeginOrBuilder
TransactionOptionsOrBuilder getBeginOrBuilder()Begin a new transaction and execute this read or SQL query in it. The transaction ID of the new transaction is returned in [ResultSetMetadata.transaction][google.spanner.v1.ResultSetMetadata.transaction], which is a [Transaction][google.spanner.v1.Transaction].
.google.spanner.v1.TransactionOptions begin = 3; -
getSelectorCase
TransactionSelector.SelectorCase getSelectorCase()
-