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 > IntermediatePortalStatementConstructors
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)
Name | Description |
name | String |
preparedStatement | IntermediatePreparedStatement |
parameters | byte[][] |
parameterFormatCodes | List<Short> |
resultFormatCodes | List<Short> |
Fields
parameterFormatCodes
protected final List<Short> parameterFormatCodes
Type | Description |
List<Short> |
resultFormatCodes
protected final List<Short> resultFormatCodes
Type | Description |
List<Short> |
Methods
bind(Statement statement)
public Statement bind(Statement statement)
Binds this portal to a set of parameter values.
Name | Description |
statement | com.google.cloud.spanner.Statement |
Type | Description |
com.google.cloud.spanner.Statement |
describeAsync(BackendConnection backendConnection)
public Future<StatementResult> describeAsync(BackendConnection backendConnection)
Name | Description |
backendConnection | BackendConnection |
Type | Description |
Future<StatementResult> |
executeAsync(BackendConnection backendConnection)
public void executeAsync(BackendConnection backendConnection)
Name | Description |
backendConnection | BackendConnection |
getParameterFormatCode(int index)
public short getParameterFormatCode(int index)
Name | Description |
index | int |
Type | Description |
short |
getPreparedStatement()
public IntermediatePreparedStatement getPreparedStatement()
Type | Description |
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.
Name | Description |
index | int |
Type | Description |
short |