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 java.lang.Object implements RedoableWithPrepareClientMessage
See https://mariadb.com/kb/en/com_stmt_execute/ for documentation
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringcommandprivate ParameterListparametersprivate ServerPreparedStatementprepprivate PrepareResultPacketprepareResult
-
Constructor Summary
Constructors Constructor Description ExecutePacket(PrepareResultPacket prepareResult, ParameterList parameters, java.lang.String command, ServerPreparedStatement prep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbatchUpdateLength()booleanbinaryProtocol()booleancanSkipMeta()java.lang.Stringdescription()intencode(PacketWriter writer, Context context, PrepareResultPacket newPrepareResult)voidensureReplayable(Context context)java.lang.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
-
-
-
-
Field Detail
-
parameters
private ParameterList parameters
-
command
private final java.lang.String command
-
prep
private final ServerPreparedStatement prep
-
prepareResult
private PrepareResultPacket prepareResult
-
-
Constructor Detail
-
ExecutePacket
public ExecutePacket(PrepareResultPacket prepareResult, ParameterList parameters, java.lang.String command, ServerPreparedStatement prep)
-
-
Method Detail
-
saveParameters
public void saveParameters()
- Specified by:
saveParametersin interfaceRedoableClientMessage
-
ensureReplayable
public void ensureReplayable(Context context) throws java.io.IOException, java.sql.SQLException
- Specified by:
ensureReplayablein interfaceRedoableClientMessage- Throws:
java.io.IOExceptionjava.sql.SQLException
-
encode
public int encode(PacketWriter writer, Context context, PrepareResultPacket newPrepareResult) throws java.io.IOException, java.sql.SQLException
- Specified by:
encodein interfaceRedoableClientMessage- Specified by:
encodein interfaceRedoableWithPrepareClientMessage- Throws:
java.io.IOExceptionjava.sql.SQLException
-
canSkipMeta
public boolean canSkipMeta()
- Specified by:
canSkipMetain interfaceClientMessage
-
batchUpdateLength
public int batchUpdateLength()
- Specified by:
batchUpdateLengthin interfaceClientMessage
-
getCommand
public java.lang.String getCommand()
- Specified by:
getCommandin interfaceRedoableWithPrepareClientMessage
-
prep
public ServerPreparedStatement prep()
- Specified by:
prepin interfaceRedoableWithPrepareClientMessage
-
binaryProtocol
public boolean binaryProtocol()
- Specified by:
binaryProtocolin interfaceClientMessage
-
description
public java.lang.String description()
- Specified by:
descriptionin interfaceClientMessage
-
setPrepareResult
public void setPrepareResult(PrepareResultPacket prepareResult)
- Specified by:
setPrepareResultin interfaceRedoableWithPrepareClientMessage
-
-