Class ClosePreparePacket
java.lang.Object
org.mariadb.jdbc.message.client.ClosePreparePacket
- All Implemented Interfaces:
ClientMessage
Client mysql COM_STMT_CLOSE packet COM_STMT_CLOSE packet. See
https://mariadb.com/kb/en/3-binary-protocol-prepared-statements-com_stmt_close/
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientMessage
batchUpdateLength, binaryProtocol, canSkipMeta, description, getLocalInfileInputStream, mightBeBulkResult, readPacket, validateLocalFileName
-
Field Details
-
statementId
private final int statementId
-
-
Constructor Details
-
ClosePreparePacket
public ClosePreparePacket(int statementId) Constructor for a prepare statement id- Parameters:
statementId- statement identifier
-
-
Method Details
-
encode
send packet to socket- Specified by:
encodein interfaceClientMessage- Parameters:
writer- socket writercontext- connection context- Returns:
- number of client message written
- Throws:
IOException- if socket error occur
-