Class IntermediatePortalStatement (0.6.1)

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
Name Description
connectionHandler ConnectionHandler
options OptionsMetadata
name String
parsedStatement ParsedStatement
originalStatement com.google.cloud.spanner.Statement

Fields

parameterFormatCodes

protected List<Short> parameterFormatCodes
Field Value
Type Description
List<Short>

resultFormatCodes

protected List<Short> resultFormatCodes
Field Value
Type Description
List<Short>

Methods

describeAsync(BackendConnection backendConnection)

public Future<DescribePortalMetadata> describeAsync(BackendConnection backendConnection)
Parameter
Name Description
backendConnection BackendConnection
Returns
Type Description
Future<DescribePortalMetadata>
Overrides

getParameterFormatCode(int index)

public short getParameterFormatCode(int index)
Parameter
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
short
Overrides

setParameterFormatCodes(List<Short> parameterFormatCodes)

public void setParameterFormatCodes(List<Short> parameterFormatCodes)
Parameter
Name Description
parameterFormatCodes List<Short>

setResultFormatCodes(List<Short> resultFormatCodes)

public void setResultFormatCodes(List<Short> resultFormatCodes)
Parameter
Name Description
resultFormatCodes List<Short>