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(ConnectionHandler connectionHandler, OptionsMetadata options, String name, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)
public IntermediatePortalStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)
Name | Description |
connectionHandler | ConnectionHandler |
options | OptionsMetadata |
name | String |
parsedStatement | ParsedStatement |
originalStatement | com.google.cloud.spanner.Statement |
Fields
parameterFormatCodes
protected List<Short> parameterFormatCodes
Type | Description |
List<Short> |
resultFormatCodes
protected List<Short> resultFormatCodes
Type | Description |
List<Short> |
Methods
describeAsync(BackendConnection backendConnection)
public Future<DescribePortalMetadata> describeAsync(BackendConnection backendConnection)
Name | Description |
backendConnection | BackendConnection |
Type | Description |
Future<DescribePortalMetadata> |
getParameterFormatCode(int index)
public short getParameterFormatCode(int index)
Name | Description |
index | int |
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.
Name | Description |
index | int |
Type | Description |
short |
setParameterFormatCodes(List<Short> parameterFormatCodes)
public void setParameterFormatCodes(List<Short> parameterFormatCodes)
Name | Description |
parameterFormatCodes | List<Short> |
setResultFormatCodes(List<Short> resultFormatCodes)
public void setResultFormatCodes(List<Short> resultFormatCodes)
Name | Description |
resultFormatCodes | List<Short> |