Class IntermediatePortalStatement (0.6.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(ConnectionHandler connectionHandler, OptionsMetadata options, String name, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)

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

Fields

parameterFormatCodes

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

resultFormatCodes

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

Methods

describeAsync(BackendConnection backendConnection)

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

getParameterFormatCode(int index)

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

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

setParameterFormatCodes(List<Short> parameterFormatCodes)

public void setParameterFormatCodes(List<Short> parameterFormatCodes)
Parameter
NameDescription
parameterFormatCodesList<Short>

setResultFormatCodes(List<Short> resultFormatCodes)

public void setResultFormatCodes(List<Short> resultFormatCodes)
Parameter
NameDescription
resultFormatCodesList<Short>