Class SimpleQueryStatement (0.27.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public class 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.
Static Methods
parseStatements(Statement statement)
protected static ImmutableList<Statement> parseStatements ( Statement statement )
Parameter
Name
Description
statement
com.google.cloud.spanner.Statement
Returns
Type
Description
com.google.common.collect.ImmutableList <com.google.cloud.spanner.Statement >
Constructors
public SimpleQueryStatement ( OptionsMetadata options , Statement originalStatement , ConnectionHandler connectionHandler )
Methods
execute()
getStatement(int index)
public String getStatement ( int index )
Parameter
Name
Description
index
int
Returns
Type
Description
String
getStatements()
public List<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 2026-03-09 UTC.
[null,null,["Last updated 2026-03-09 UTC."],[],[]]