public class IntermediatePreparedStatement extends IntermediateStatement
Intermediate representation for prepared statements (i.e.: statements before they become portals)
Constructors
IntermediatePreparedStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)
public IntermediatePreparedStatement(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
parameterDataTypes
protected int[] parameterDataTypes
Type | Description |
int[] |
statement
protected Statement statement
Type | Description |
com.google.cloud.spanner.Statement |
Methods
bind(String name, byte[][] parameters, List<Short> parameterFormatCodes, List<Short> resultFormatCodes)
public IntermediatePortalStatement bind(String name, byte[][] parameters, List<Short> parameterFormatCodes, List<Short> resultFormatCodes)
Bind this statement (that is to say, transform it into a portal by giving it the data items to complete the statement.
Name | Description |
name | String |
parameters | byte[][] The array of parameters to be bound in byte format. |
parameterFormatCodes | List<Short> A list of the format of each parameter. |
resultFormatCodes | List<Short> A list of the desired format of each result. |
Type | Description |
IntermediatePortalStatement | An Intermediate Portal Statement (or rather a bound version of this statement) |
describe()
public DescribeMetadata<?> describe()
Moreso meant for inherited classes, allows one to call describe on a statement. Since raw statements cannot be described, throw an error.
Type | Description |
DescribeMetadata<?> |
executeAsync(BackendConnection backendConnection)
public void executeAsync(BackendConnection backendConnection)
Name | Description |
backendConnection | BackendConnection |
getParameterDataTypes()
public int[] getParameterDataTypes()
Type | Description |
int[] |
setParameterDataTypes(int[] parameterDataTypes)
public void setParameterDataTypes(int[] parameterDataTypes)
Name | Description |
parameterDataTypes | int[] |