Package org.mariadb.jdbc.message.client
Class ExecutePacket
java.lang.Object
org.mariadb.jdbc.message.client.ExecutePacket
- All Implemented Interfaces:
ClientMessage
,RedoableClientMessage
,RedoableWithPrepareClientMessage
See https://mariadb.com/kb/en/com_stmt_execute/ for documentation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private ParameterList
private final ServerPreparedStatement
private PrepareResultPacket
-
Constructor Summary
ConstructorsConstructorDescriptionExecutePacket
(PrepareResultPacket prepareResult, ParameterList parameters, String command, ServerPreparedStatement prep) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
int
encode
(PacketWriter writer, Context context, PrepareResultPacket newPrepareResult) void
ensureReplayable
(Context context) prep()
void
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 Details
-
parameters
-
command
-
prep
-
prepareResult
-
-
Constructor Details
-
ExecutePacket
public ExecutePacket(PrepareResultPacket prepareResult, ParameterList parameters, String command, ServerPreparedStatement prep)
-
-
Method Details
-
saveParameters
public void saveParameters()- Specified by:
saveParameters
in interfaceRedoableClientMessage
-
ensureReplayable
- Specified by:
ensureReplayable
in interfaceRedoableClientMessage
- Throws:
IOException
SQLException
-
encode
public int encode(PacketWriter writer, Context context, PrepareResultPacket newPrepareResult) throws IOException, SQLException - Specified by:
encode
in interfaceRedoableClientMessage
- Specified by:
encode
in interfaceRedoableWithPrepareClientMessage
- Throws:
IOException
SQLException
-
canSkipMeta
public boolean canSkipMeta()- Specified by:
canSkipMeta
in interfaceClientMessage
-
batchUpdateLength
public int batchUpdateLength()- Specified by:
batchUpdateLength
in interfaceClientMessage
-
getCommand
- Specified by:
getCommand
in interfaceRedoableWithPrepareClientMessage
-
prep
- Specified by:
prep
in interfaceRedoableWithPrepareClientMessage
-
binaryProtocol
public boolean binaryProtocol()- Specified by:
binaryProtocol
in interfaceClientMessage
-
description
- Specified by:
description
in interfaceClientMessage
-
setPrepareResult
- Specified by:
setPrepareResult
in interfaceRedoableWithPrepareClientMessage
-