Handler class abstract
Each command which the mysql protocol implements is handled with a _Handler
object.
A handler is created with the appropriate parameters when the command is invoked
from the connection. The transport is then responsible for sending the
request which the handler creates, and then parsing the result returned by
the mysql server, either synchronously or asynchronously.
Constructors
- Handler(Logger log)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- log → Logger
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkResponse(
Buffer response, [bool prepareStmt = false, bool isHandlingRows = false]) → dynamic -
Parses the response packet to recognise Ok and Error packets.
Returns an
_OkPacket
if the packet was an Ok packet, throws a MySqlException if it was an Error packet, or returnsnull
if the packet has not been handled by this method. -
createRequest(
) → Buffer - Returns a Buffer containing the command packet.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
processResponse(
Buffer response) → HandlerResponse -
Parses a Buffer containing the response to the command.
Returns a
_HandlerResponse
. The default implementation returns a finished_HandlerResponse
with a result which is obtained by calling checkResponse -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited