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.String
sql
-
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.String
description()
int
encode(PacketWriter writer, Context context)
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)
-
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:
encode
in 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:
readPacket
in interfaceClientMessage
- Throws:
java.io.IOException
java.sql.SQLException
-
description
public java.lang.String description()
- Specified by:
description
in interfaceClientMessage
-
-