Class QueryMessage (0.8.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

DEALLOCATE

public static final String DEALLOCATE
Field Value
TypeDescription
String

EXECUTE

public static final String EXECUTE
Field Value
TypeDescription
String

IDENTIFIER

protected static final char IDENTIFIER
Field Value
TypeDescription
char

PREPARE

public static final String PREPARE
Field Value
TypeDescription
String

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