Class IntermediatePreparedStatement (0.22.1)

publicclass IntermediatePreparedStatementextendsIntermediateStatement

Intermediate representation for prepared statements (i.e.: statements before they become portals)

Inheritance

java.lang.Object > IntermediateStatement > IntermediatePreparedStatement

Inherited Members

Constructors

IntermediatePreparedStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, int[] givenParameterDataTypes, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)

publicIntermediatePreparedStatement(ConnectionHandlerconnectionHandler,OptionsMetadataoptions,Stringname,int[]givenParameterDataTypes,AbstractStatementParser.ParsedStatementparsedStatement,StatementoriginalStatement)
Parameters
Name Description
connectionHandler ConnectionHandler
options OptionsMetadata
name String
givenParameterDataTypes int[]
parsedStatement ParsedStatement
originalStatement com.google.cloud.spanner.Statement

Fields

givenParameterDataTypes

protectedfinalint[]givenParameterDataTypes
Field Value
Type Description
int[]

statement

protectedStatementstatement
Field Value
Type Description
com.google.cloud.spanner.Statement

Methods

autoDescribeParameters(byte[][] parameterValues, BackendConnection backendConnection)

publicvoidautoDescribeParameters(byte[][]parameterValues,BackendConnectionbackendConnection)

Describe the parameters of this statement.

Parameters
Name Description
parameterValues byte[][]
backendConnection BackendConnection

createPortal(String name, byte[][] parameters, List<Short> parameterFormatCodes, List<Short> resultFormatCodes)

publicIntermediatePortalStatementcreatePortal(Stringname,byte[][]parameters,List<Short>parameterFormatCodes,List<Short>resultFormatCodes)

Creates a portal from this statement.

Parameters
Name Description
name String
parameters byte[][]
parameterFormatCodes List<Short>

A list of the format of each parameter.

resultFormatCodes List<Short>

A list of the desired format of each result.

Returns
Type Description
IntermediatePortalStatement

An Intermediate Portal Statement (or rather a bound version of this statement)

describe()

publicDescribeResultdescribe()

Moreso meant for inherited classes, allows one to call describe on a statement. Since raw statements cannot be described, throw an error.

Returns
Type Description
DescribeResult
Overrides

describeAsync(BackendConnection backendConnection)

publicFuture<StatementResult>describeAsync(BackendConnectionbackendConnection)
Parameter
Name Description
backendConnection BackendConnection
Returns
Type Description
Future<StatementResult>
Overrides

getGivenParameterDataTypes()

publicint[]getGivenParameterDataTypes()
Returns
Type Description
int[]

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.