Package org.mariadb.jdbc.message.client
Class LongDataPacket
- java.lang.Object
-
- org.mariadb.jdbc.message.client.LongDataPacket
-
- All Implemented Interfaces:
ClientMessage
public final class LongDataPacket extends java.lang.Object implements ClientMessage
COM_STMT_SEND_LONG_DATAPermit to send ONE value in a dedicated packet. The advantage is when length is unknown, to stream easily data to socket
https://mariadb.com/kb/en/com_stmt_send_long_data/
-
-
Field Summary
Fields Modifier and Type Field Description private int
index
private Parameter<?>
parameter
private int
statementId
-
Constructor Summary
Constructors Constructor Description LongDataPacket(int statementId, Parameter<?> parameter, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
encode(PacketWriter writer, Context context)
-
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.client.ClientMessage
batchUpdateLength, binaryProtocol, canSkipMeta, description, readPacket
-
-
-
-
Field Detail
-
statementId
private final int statementId
-
parameter
private final Parameter<?> parameter
-
index
private final int index
-
-
Constructor Detail
-
LongDataPacket
public LongDataPacket(int statementId, Parameter<?> parameter, int index)
-
-
Method Detail
-
encode
public int encode(PacketWriter writer, Context context) throws java.io.IOException, java.sql.SQLException
- Specified by:
encode
in interfaceClientMessage
- Throws:
java.io.IOException
java.sql.SQLException
-
-