Package org.mariadb.jdbc.message.client
Class ClosePreparePacket
- java.lang.Object
-
- org.mariadb.jdbc.message.client.ClosePreparePacket
-
- All Implemented Interfaces:
ClientMessage
public final class ClosePreparePacket extends java.lang.Object implements 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 Modifier and Type Field Description private int
statementId
-
Constructor Summary
Constructors Constructor Description ClosePreparePacket(int statementId)
Constructor for a prepare statement id
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
encode(Writer writer, Context context)
send packet to socket-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mariadb.jdbc.message.ClientMessage
batchUpdateLength, binaryProtocol, canSkipMeta, description, getLocalInfileInputStream, mightBeBulkResult, readPacket, validateLocalFileName
-
-
-
-
Method Detail
-
encode
public int encode(Writer writer, Context context) throws java.io.IOException
send packet to socket- Specified by:
encode
in interfaceClientMessage
- Parameters:
writer
- socket writercontext
- connection context- Returns:
- number of client message written
- Throws:
java.io.IOException
- if socket error occur
-
-