int size = transfer.readInt();
ArrayList<String> batchCommands = New.arrayList(size);
for (int i = 0; i < size; i++)
batchCommands.add(transfer.readString());
BackendBatchCommand command = new BackendBatchCommand(session, batchCommands);
executeBatch(size, command);
break;
}
case SessionRemote.COMMAND_EXECUTE_BATCH_UPDATE_PREPAREDSTATEMENT: {
int id = transfer.readInt();
int size = transfer.readInt();
Command preparedCommand = (Command) cache.getObject(id, false);
ArrayList<Value[]> batchParameters = New.arrayList(size);
int paramsSize = preparedCommand.getParameters().size();
Value[] values;
for (int i = 0; i < size; i++) {
values = new Value[paramsSize];
for (int j = 0; j < paramsSize; j++) {
values[j] = transfer.readValue();
}
batchParameters.add(values);
}
BackendBatchCommand command = new BackendBatchCommand(session, preparedCommand, batchParameters);
executeBatch(size, command);
break;
}
case SessionRemote.COMMAND_CLOSE: {
int id = transfer.readInt();
Command command = (Command) cache.getObject(id, true);
if (command != null) {
command.close();
cache.freeObject(id);
}
break;
}
case SessionRemote.RESULT_FETCH_ROWS: {