Class QueryMessage (0.5.0)

public class QueryMessage extends ControlMessage

Executes a simple statement.

Inheritance

java.lang.Object > WireMessage > ControlMessage > QueryMessage

Static Fields

COPY

public static final String COPY
Field Value
TypeDescription
String

IDENTIFIER

protected static final char IDENTIFIER
Field Value
TypeDescription
char

Constructors

QueryMessage(ConnectionHandler connection)

public QueryMessage(ConnectionHandler connection)
Parameter
NameDescription
connectionConnectionHandler

Methods

getIdentifier()

protected String getIdentifier()

Used for logging.

Returns
TypeDescription
String
Overrides

getMessageName()

protected String getMessageName()

Used for logging.

Returns
TypeDescription
String
Overrides

getPayloadString()

protected String getPayloadString()

Used for logging.

Returns
TypeDescription
String
Overrides

getSimpleQueryStatement()

public SimpleQueryStatement getSimpleQueryStatement()
Returns
TypeDescription
SimpleQueryStatement

getStatement()

public Statement getStatement()
Returns
TypeDescription
com.google.cloud.spanner.Statement

sendPayload()

protected void sendPayload()

Override this method to include post-processing and metadata in the sending process. Template method for send.

Overrides Exceptions
TypeDescription
Exception