Class IntermediatePortalStatement (0.25.0)

public class IntermediatePortalStatement extends IntermediatePreparedStatement

An intermediate representation of a portal statement (that is, a prepared statement which contains all relevant information for execution.

Inheritance

java.lang.Object > IntermediateStatement > IntermediatePreparedStatement > IntermediatePortalStatement

Constructors

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

public IntermediatePortalStatement(String name, IntermediatePreparedStatement preparedStatement, byte[][] parameters, List<Short> parameterFormatCodes, List<Short> resultFormatCodes)
Parameters
NameDescription
nameString
preparedStatementIntermediatePreparedStatement
parametersbyte[][]
parameterFormatCodesList<Short>
resultFormatCodesList<Short>

Fields

parameterFormatCodes

protected final List<Short> parameterFormatCodes
Field Value
TypeDescription
List<Short>

resultFormatCodes

protected final List<Short> resultFormatCodes
Field Value
TypeDescription
List<Short>

Methods

bind(Statement statement)

public Statement bind(Statement statement)

Binds this portal to a set of parameter values.

Parameter
NameDescription
statementcom.google.cloud.spanner.Statement
Returns
TypeDescription
com.google.cloud.spanner.Statement

describeAsync(BackendConnection backendConnection)

public Future<StatementResult> describeAsync(BackendConnection backendConnection)
Parameter
NameDescription
backendConnectionBackendConnection
Returns
TypeDescription
Future<StatementResult>
Overrides

executeAsync(BackendConnection backendConnection)

public void executeAsync(BackendConnection backendConnection)
Parameter
NameDescription
backendConnectionBackendConnection
Overrides

getParameterFormatCode(int index)

public short getParameterFormatCode(int index)
Parameter
NameDescription
indexint
Returns
TypeDescription
short

getPreparedStatement()

public IntermediatePreparedStatement getPreparedStatement()
Returns
TypeDescription
IntermediatePreparedStatement

getResultFormatCode(int index)

public short getResultFormatCode(int index)

Moreso intended for inherited classes (prepared statements et al) which allow the setting of result format codes. Here we dafault to string.

Parameter
NameDescription
indexint
Returns
TypeDescription
short
Overrides

setStatementResult(StatementResult statementResult)

public void setStatementResult(StatementResult statementResult)
Parameter
NameDescription
statementResultStatementResult
Overrides