Class SimpleQueryStatement (0.23.1)

publicclass SimpleQueryStatement

Class that represents a simple query protocol statement. This statement can contain multiple semi-colon separated SQL statements. The simple query protocol internally uses the extended query protocol to execute the statement(s) in the SQL string, but does not return all the messages that would have been returned by the extended protocol.

Inheritance

java.lang.Object > SimpleQueryStatement

Static Methods

parseStatements(Statement statement)

protectedstaticImmutableList<Statement>parseStatements(Statementstatement)
Parameter
Name Description
statement com.google.cloud.spanner.Statement
Returns
Type Description
com.google.common.collect.ImmutableList<com.google.cloud.spanner.Statement>

Constructors

SimpleQueryStatement(OptionsMetadata options, Statement originalStatement, ConnectionHandler connectionHandler)

publicSimpleQueryStatement(OptionsMetadataoptions,StatementoriginalStatement,ConnectionHandlerconnectionHandler)
Parameters
Name Description
options OptionsMetadata
originalStatement com.google.cloud.spanner.Statement
connectionHandler ConnectionHandler

Methods

execute()

publicvoidexecute()
Exceptions
Type Description
Exception

getStatement(int index)

publicStringgetStatement(intindex)
Parameter
Name Description
index int
Returns
Type Description
String

getStatements()

publicList<Statement>getStatements()
Returns
Type Description
List<com.google.cloud.spanner.Statement>

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月30日 UTC.