Package org.mariadb.jdbc.message.client
Class BulkExecutePacket
java.lang.Object
org.mariadb.jdbc.message.client.BulkExecutePacket
- All Implemented Interfaces:
ClientMessage
,RedoableClientMessage
,RedoableWithPrepareClientMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<ParameterList>
private final String
private final ServerPreparedStatement
private PrepareResultPacket
-
Constructor Summary
ConstructorsConstructorDescriptionBulkExecutePacket
(PrepareResultPacket prepareResult, List<ParameterList> batchParameterList, String command, ServerPreparedStatement prep) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
encode
(PacketWriter writer, Context context, PrepareResultPacket newPrepareResult) 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
canSkipMeta, readPacket
Methods inherited from interface org.mariadb.jdbc.message.client.RedoableClientMessage
ensureReplayable
Methods inherited from interface org.mariadb.jdbc.message.client.RedoableWithPrepareClientMessage
encode, reEncode, rePrepare
-
Field Details
-
batchParameterList
-
command
-
prep
-
prepareResult
-
-
Constructor Details
-
BulkExecutePacket
public BulkExecutePacket(PrepareResultPacket prepareResult, List<ParameterList> batchParameterList, String command, ServerPreparedStatement prep)
-
-
Method Details
-
saveParameters
public void saveParameters()- Specified by:
saveParameters
in interfaceRedoableClientMessage
-
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
-
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
-