Class ParseMessage (0.18.1)

public class ParseMessage extends AbstractQueryProtocolMessage

Creates a prepared statement.

Static Fields

IDENTIFIER

protected static final char IDENTIFIER
Field Value
TypeDescription
char

Constructors

ParseMessage(ConnectionHandler connection)

public ParseMessage(ConnectionHandler connection)
Parameter
NameDescription
connectionConnectionHandler

ParseMessage(ConnectionHandler connection, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)

public ParseMessage(ConnectionHandler connection, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)

Constructor for manually created Parse messages that originate from the simple query protocol.

Parameters
NameDescription
connectionConnectionHandler
parsedStatementParsedStatement
originalStatementcom.google.cloud.spanner.Statement

ParseMessage(ConnectionHandler connection, String name, int[] parameterDataTypes, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)

public ParseMessage(ConnectionHandler connection, String name, int[] parameterDataTypes, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)

Constructor for manually created Parse messages that originate from a PREPARE statement.

Parameters
NameDescription
connectionConnectionHandler
nameString
parameterDataTypesint[]
parsedStatementParsedStatement
originalStatementcom.google.cloud.spanner.Statement

Methods

flush()

public void flush()
Overrides Exceptions
TypeDescription
Exception

getIdentifier()

protected String getIdentifier()

Used for logging.

Returns
TypeDescription
String
Overrides

getMessageName()

protected String getMessageName()

Used for logging.

Returns
TypeDescription
String
Overrides

getName()

public String getName()
Returns
TypeDescription
String

getPayloadString()

protected String getPayloadString()

Used for logging.

Returns
TypeDescription
String
Overrides

getSql()

public String getSql()
Returns
TypeDescription
String
Overrides

getStatement()

public IntermediatePreparedStatement getStatement()
Returns
TypeDescription
IntermediatePreparedStatement