Class StartTransactionIsolationLevelRepeatableRead (0.21.0)

public class StartTransactionIsolationLevelRepeatableRead implements LocalStatement

Simple replacement for statements that start a repeatable-read transaction.

Inheritance

java.lang.Object > StartTransactionIsolationLevelRepeatableRead

Implements

LocalStatement

Static Fields

INSTANCE

public static final StartTransactionIsolationLevelRepeatableRead INSTANCE
Field Value
TypeDescription
StartTransactionIsolationLevelRepeatableRead

Methods

execute(BackendConnection backendConnection)

public StatementResult execute(BackendConnection backendConnection)

Executes the local statement and returns the result.

Parameter
NameDescription
backendConnectionBackendConnection
Returns
TypeDescription
StatementResult

getReplacementStatement(Statement statement)

public Statement getReplacementStatement(Statement statement)

Returns the static replacement statement for this local statement, or null if #hasReplacementStatement() returns false.

Parameter
NameDescription
statementcom.google.cloud.spanner.Statement
Returns
TypeDescription
com.google.cloud.spanner.Statement

getSql()

public String[] getSql()

Returns the static SQL string associated with this local statement. A statement should include a SQL statement for each variant that can reasonably be expected to be generated by a framework, but does not need to include a variant for each theoretically possible variant. The given SQL strings will be used as the keys in a java.util.Map for quick lookup. This means that it will not match all possible variants of the statement, which is OK, as this is only intended to cover auto-generated query strings from frameworks/tools.

Returns
TypeDescription
String[]

hasReplacementStatement()

public boolean hasReplacementStatement()

Returns true if the statement has a static replacement SQL string.

Returns
TypeDescription
boolean