Package org.mariadb.jdbc.message.client
Class PreparePacket
- java.lang.Object
-
- org.mariadb.jdbc.message.client.PreparePacket
-
- All Implemented Interfaces:
ClientMessage
public final class PreparePacket extends java.lang.Object implements ClientMessage
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringsql
-
Constructor Summary
Constructors Constructor Description PreparePacket(java.lang.String sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdescription()intencode(PacketWriter writer, Context context)CompletionreadPacket(Statement stmt, int fetchSize, long maxRows, int resultSetConcurrency, int resultSetType, boolean closeOnCompletion, PacketReader reader, PacketWriter writer, Context context, ExceptionFactory exceptionFactory, java.util.concurrent.locks.ReentrantLock lock, boolean traceEnable)-
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
-
-
-
-
Method Detail
-
encode
public int encode(PacketWriter writer, Context context) throws java.io.IOException
- Specified by:
encodein interfaceClientMessage- Throws:
java.io.IOException
-
readPacket
public Completion readPacket(Statement stmt, int fetchSize, long maxRows, int resultSetConcurrency, int resultSetType, boolean closeOnCompletion, PacketReader reader, PacketWriter writer, Context context, ExceptionFactory exceptionFactory, java.util.concurrent.locks.ReentrantLock lock, boolean traceEnable) throws java.io.IOException, java.sql.SQLException
- Specified by:
readPacketin interfaceClientMessage- Throws:
java.io.IOExceptionjava.sql.SQLException
-
description
public java.lang.String description()
- Specified by:
descriptionin interfaceClientMessage
-
-