Package org.mariadb.jdbc.message.client
Class ExecutePacket
- java.lang.Object
-
- org.mariadb.jdbc.message.client.ExecutePacket
-
- All Implemented Interfaces:
ClientMessage,RedoableClientMessage,RedoableWithPrepareClientMessage
public final class ExecutePacket extends Object implements RedoableWithPrepareClientMessage
See https://mariadb.com/kb/en/com_stmt_execute/ for documentation
-
-
Constructor Summary
Constructors Constructor Description ExecutePacket(PrepareResultPacket prepareResult, org.mariadb.jdbc.util.ParameterList parameters, String command, ServerPreparedStatement prep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbatchUpdateLength()booleanbinaryProtocol()booleancanSkipMeta()Stringdescription()intencode(PacketWriter writer, Context context, PrepareResultPacket newPrepareResult)voidensureReplayable(Context context)StringgetCommand()ServerPreparedStatementprep()voidsaveParameters()voidsetPrepareResult(PrepareResultPacket prepareResult)-
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
readPacket
-
Methods inherited from interface org.mariadb.jdbc.message.client.RedoableWithPrepareClientMessage
encode, reEncode, rePrepare
-
-
-
-
Constructor Detail
-
ExecutePacket
public ExecutePacket(PrepareResultPacket prepareResult, org.mariadb.jdbc.util.ParameterList parameters, String command, ServerPreparedStatement prep)
-
-
Method Detail
-
saveParameters
public void saveParameters()
- Specified by:
saveParametersin interfaceRedoableClientMessage
-
ensureReplayable
public void ensureReplayable(Context context) throws IOException, SQLException
- Specified by:
ensureReplayablein interfaceRedoableClientMessage- Throws:
IOExceptionSQLException
-
encode
public int encode(PacketWriter writer, Context context, PrepareResultPacket newPrepareResult) throws IOException, SQLException
- Specified by:
encodein interfaceRedoableClientMessage- Specified by:
encodein interfaceRedoableWithPrepareClientMessage- Throws:
IOExceptionSQLException
-
canSkipMeta
public boolean canSkipMeta()
- Specified by:
canSkipMetain interfaceClientMessage
-
batchUpdateLength
public int batchUpdateLength()
- Specified by:
batchUpdateLengthin interfaceClientMessage
-
getCommand
public String getCommand()
- Specified by:
getCommandin interfaceRedoableWithPrepareClientMessage
-
prep
public ServerPreparedStatement prep()
- Specified by:
prepin interfaceRedoableWithPrepareClientMessage
-
binaryProtocol
public boolean binaryProtocol()
- Specified by:
binaryProtocolin interfaceClientMessage
-
description
public String description()
- Specified by:
descriptionin interfaceClientMessage
-
setPrepareResult
public void setPrepareResult(PrepareResultPacket prepareResult)
- Specified by:
setPrepareResultin interfaceRedoableWithPrepareClientMessage
-
-