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.String
command
private ParameterList
parameters
private ServerPreparedStatement
prep
private PrepareResultPacket
prepareResult
-
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 int
batchUpdateLength()
boolean
binaryProtocol()
boolean
canSkipMeta()
java.lang.String
description()
int
encode(PacketWriter writer, Context context, PrepareResultPacket newPrepareResult)
void
ensureReplayable(Context context)
java.lang.String
getCommand()
ServerPreparedStatement
prep()
void
saveParameters()
void
setPrepareResult(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:
saveParameters
in interfaceRedoableClientMessage
-
ensureReplayable
public void ensureReplayable(Context context) throws java.io.IOException, java.sql.SQLException
- Specified by:
ensureReplayable
in interfaceRedoableClientMessage
- Throws:
java.io.IOException
java.sql.SQLException
-
encode
public int encode(PacketWriter writer, Context context, PrepareResultPacket newPrepareResult) throws java.io.IOException, java.sql.SQLException
- Specified by:
encode
in interfaceRedoableClientMessage
- Specified by:
encode
in interfaceRedoableWithPrepareClientMessage
- Throws:
java.io.IOException
java.sql.SQLException
-
canSkipMeta
public boolean canSkipMeta()
- Specified by:
canSkipMeta
in interfaceClientMessage
-
batchUpdateLength
public int batchUpdateLength()
- Specified by:
batchUpdateLength
in interfaceClientMessage
-
getCommand
public java.lang.String getCommand()
- Specified by:
getCommand
in interfaceRedoableWithPrepareClientMessage
-
prep
public ServerPreparedStatement prep()
- Specified by:
prep
in interfaceRedoableWithPrepareClientMessage
-
binaryProtocol
public boolean binaryProtocol()
- Specified by:
binaryProtocol
in interfaceClientMessage
-
description
public java.lang.String description()
- Specified by:
description
in interfaceClientMessage
-
setPrepareResult
public void setPrepareResult(PrepareResultPacket prepareResult)
- Specified by:
setPrepareResult
in interfaceRedoableWithPrepareClientMessage
-
-