Interface TransactionSelectorOrBuilder (6.82.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
Type Description
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
Type Description
TransactionOptionsOrBuilder

getId()

public abstract ByteString getId()

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

bytes id = 2;

Returns
Type Description
ByteString

The id.

getSelectorCase()

public abstract TransactionSelector.SelectorCase getSelectorCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the singleUse field is set.