Class SimpleQueryStatement (0.6.0)

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.

Inheritance

java.lang.Object > SimpleQueryStatement

Static Methods

parseStatements(Statement statement)

protected static ImmutableList<Statement> parseStatements(Statement statement)
Parameter
NameDescription
statementcom.google.cloud.spanner.Statement
Returns
TypeDescription
com.google.common.collect.ImmutableList<com.google.cloud.spanner.Statement>

Constructors

SimpleQueryStatement(OptionsMetadata options, Statement originalStatement, ConnectionHandler connectionHandler)

public SimpleQueryStatement(OptionsMetadata options, Statement originalStatement, ConnectionHandler connectionHandler)
Parameters
NameDescription
optionsOptionsMetadata
originalStatementcom.google.cloud.spanner.Statement
connectionHandlerConnectionHandler

Methods

execute()

public void execute()
Exceptions
TypeDescription
Exception

getStatement(int index)

public String getStatement(int index)
Parameter
NameDescription
indexint
Returns
TypeDescription
String

getStatements()

public List<Statement> getStatements()
Returns
TypeDescription
List<com.google.cloud.spanner.Statement>