class UpdateBase<P extends Packet> implements PacketHandler<P> {

        protected void createYieldableUpdate(PacketHandleTask task, PreparedSQLStatement stmt) {<FILL_FUNCTION_BODY>}

        protected Packet createAckPacket(PacketHandleTask task, int updateCount) {
            return new StatementUpdateAck(updateCount);
        }
    }

            if (stmt instanceof StatementList) {
                StatementListPacketHandlers.updateHandler.createYieldableUpdate(task, stmt);
                return;
            }
            PreparedSQLStatement.Yieldable<?> yieldable = stmt.createYieldableUpdate(ar -> {
                if (ar.isSucceeded()) {
                    int updateCount = ar.getResult();
                    task.conn.sendResponse(task, createAckPacket(task, updateCount));
                } else {
                    task.conn.sendError(task.session, task.packetId, ar.getCause());
                }
            });
            task.si.submitYieldableCommand(task.packetId, yieldable);
        
<no_super_class>