Interface TransactionSelectorOrBuilder (6.60.0)

public interface TransactionSelectorOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBegin()

public abstract 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, which is a Transaction.

.google.spanner.v1.TransactionOptions begin = 3;

Returns
TypeDescription
TransactionOptions

The begin.

getBeginOrBuilder()

public abstract 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, which is a Transaction.

.google.spanner.v1.TransactionOptions begin = 3;

Returns
TypeDescription
TransactionOptionsOrBuilder

getId()

public abstract ByteString getId()

Execute the read or SQL query in a previously-started transaction.

bytes id = 2;

Returns
TypeDescription
ByteString

The id.

getSelectorCase()

public abstract TransactionSelector.SelectorCase getSelectorCase()
Returns
TypeDescription
TransactionSelector.SelectorCase

getSingleUse()

public abstract 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
TypeDescription
TransactionOptions

The singleUse.

getSingleUseOrBuilder()

public abstract 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;

Returns
TypeDescription
TransactionOptionsOrBuilder

hasBegin()

public abstract 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, which is a Transaction.

.google.spanner.v1.TransactionOptions begin = 3;

Returns
TypeDescription
boolean

Whether the begin field is set.

hasId()

public abstract boolean hasId()

Execute the read or SQL query in a previously-started transaction.

bytes id = 2;

Returns
TypeDescription
boolean

Whether the id field is set.

hasSingleUse()

public abstract 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
TypeDescription
boolean

Whether the singleUse field is set.