Class QueryMessage (0.25.0)

public class QueryMessage extends ControlMessage

Executes a simple statement.

Inheritance

java.lang.Object > WireMessage > ControlMessage > QueryMessage

Static Fields

CLOSE

public static final String CLOSE
Field Value
TypeDescription
String

COPY

public static final String COPY
Field Value
TypeDescription
String

DEALLOCATE

public static final String DEALLOCATE
Field Value
TypeDescription
String

DECLARE

public static final String DECLARE
Field Value
TypeDescription
String

EXECUTE

public static final String EXECUTE
Field Value
TypeDescription
String

FETCH

public static final String FETCH
Field Value
TypeDescription
String

IDENTIFIER

protected static final char IDENTIFIER
Field Value
TypeDescription
char

MOVE

public static final String MOVE
Field Value
TypeDescription
String

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

SHOW_DATABASE_DDL

public static final ImmutableList<String> SHOW_DATABASE_DDL
Field Value
TypeDescription
com.google.common.collect.ImmutableList<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