Class AbstractQueryProtocolMessage (0.27.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
TypeDescription
ConnectionHandler.QueryMode

Methods

flush()

public abstract void flush()
Exceptions
TypeDescription
Exception

getSql()

public abstract String getSql()
Returns
TypeDescription
String

handleError(Exception exception)

protected void handleError(Exception exception)

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

Parameter
NameDescription
exceptionException
Overrides
Exceptions
TypeDescription
Exception

isReturnedErrorResponse()

public boolean isReturnedErrorResponse()
Returns
TypeDescription
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
TypeDescription
Exception