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