Class StartTransactionIsolationLevelRepeatableRead (0.27.1)
public class StartTransactionIsolationLevelRepeatableRead implements LocalStatement
Simple replacement for statements that start a repeatable-read transaction.
Static Fields
INSTANCE
public static final StartTransactionIsolationLevelRepeatableRead INSTANCE
Methods
execute(BackendConnection backendConnection)
public StatementResult execute(BackendConnection backendConnection)
Executes the local statement and returns the result.
getReplacementStatement(Statement statement)
public Statement getReplacementStatement(Statement statement)
Parameter |
Name |
Description |
statement |
com.google.cloud.spanner.Statement
|
Returns |
Type |
Description |
com.google.cloud.spanner.Statement |
|
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 |
Type |
Description |
String[] |
|
hasReplacementStatement()
public boolean hasReplacementStatement()
Returns true if the statement has a static replacement SQL string.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]