Class QueryMessage (0.18.2)

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

RELEASE

public static final String RELEASE
Field Value
TypeDescription
String

ROLLBACK

public static final String ROLLBACK
Field Value
TypeDescription
String

SAVEPOINT

public static final String SAVEPOINT
Field Value
TypeDescription
String

TRUNCATE

public static final String TRUNCATE
Field Value
TypeDescription
String

VACUUM

public static final String VACUUM
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