Class AbstractQueryProtocolMessage (0.20.0)

public abstract class AbstractQueryProtocolMessage extends ControlMessage

Abstract base class for extended query protocol messages. These can be buffered in memory locally until a flush or sync message is received. Any corresponding database statement will only be executed once a flush/sync is received.

Inheritance

java.lang.Object > WireMessage > ControlMessage > AbstractQueryProtocolMessage

Fields

queryMode

protected final ConnectionHandler.QueryMode queryMode
Field Value
Type Description
ConnectionHandler.QueryMode

Methods

flush()

public abstract void flush()
Exceptions
Type Description
Exception

getSql()

public abstract String getSql()
Returns
Type Description
String

handleError(Exception exception)

protected void handleError(Exception exception)

Takes an Exception Object and relates its results to the user within the client.

Parameter
Name Description
exception Exception
Overrides
Exceptions
Type Description
Exception

isReturnedErrorResponse()

public boolean isReturnedErrorResponse()
Returns
Type Description
boolean

sendPayload()

protected final void sendPayload()

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

Overrides
Exceptions
Type Description
Exception