Class IntermediatePreparedStatement (0.5.1)

public class IntermediatePreparedStatement extends IntermediateStatement

Intermediate representation for prepared statements (i.e.: statements before they become portals)

Inheritance

java.lang.Object > IntermediateStatement > IntermediatePreparedStatement

Constructors

IntermediatePreparedStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)

public IntermediatePreparedStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)
Parameters
NameDescription
connectionHandlerConnectionHandler
optionsOptionsMetadata
nameString
parsedStatementParsedStatement
originalStatementcom.google.cloud.spanner.Statement

Fields

parameterDataTypes

protected int[] parameterDataTypes
Field Value
TypeDescription
int[]

statement

protected Statement statement
Field Value
TypeDescription
com.google.cloud.spanner.Statement

Methods

bind(String name, byte[][] parameters, List<Short> parameterFormatCodes, List<Short> resultFormatCodes)

public IntermediatePortalStatement bind(String name, byte[][] parameters, List<Short> parameterFormatCodes, List<Short> resultFormatCodes)

Bind this statement (that is to say, transform it into a portal by giving it the data items to complete the statement.

Parameters
NameDescription
nameString
parametersbyte[][]

The array of parameters to be bound in byte format.

parameterFormatCodesList<Short>

A list of the format of each parameter.

resultFormatCodesList<Short>

A list of the desired format of each result.

Returns
TypeDescription
IntermediatePortalStatement

An Intermediate Portal Statement (or rather a bound version of this statement)

describe()

public DescribeMetadata<?> describe()

Moreso meant for inherited classes, allows one to call describe on a statement. Since raw statements cannot be described, throw an error.

Returns
TypeDescription
DescribeMetadata<?>
Overrides

executeAsync(BackendConnection backendConnection)

public void executeAsync(BackendConnection backendConnection)
Parameter
NameDescription
backendConnectionBackendConnection
Overrides

getParameterDataTypes()

public int[] getParameterDataTypes()
Returns
TypeDescription
int[]

setParameterDataTypes(int[] parameterDataTypes)

public void setParameterDataTypes(int[] parameterDataTypes)
Parameter
NameDescription
parameterDataTypesint[]