Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 48931 invoked from network); 6 Oct 2007 17:07:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Oct 2007 17:07:00 -0000 Received: (qmail 4193 invoked by uid 500); 6 Oct 2007 17:06:48 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 4182 invoked by uid 99); 6 Oct 2007 17:06:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Oct 2007 10:06:48 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.150.49.174] (HELO mtaout4.barak.net.il) (212.150.49.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Oct 2007 17:06:49 +0000 Received: from ILANC ([89.1.133.150]) by mtaout4.barak.net.il (Sun Java System Messaging Server 6.2-7.04 (built Aug 17 2006)) with ESMTPA id <0JPI002CS26D44D0@mtaout4.barak.net.il> for jdo-dev@db.apache.org; Sat, 06 Oct 2007 19:06:13 +0200 (IST) Date: Sat, 06 Oct 2007 19:05:42 +0200 From: Ilan Kirsh Subject: Adjusting Extent to Java 5.0 To: jdo-dev@db.apache.org Reply-to: Ilan Kirsh Message-id: <007101c8083b$2fb2d180$0500000a@ILANC> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Mailer: Microsoft Outlook Express 6.00.2900.3138 Content-type: multipart/alternative; boundary="----=_NextPart_000_006C_01C8084B.E441DC30" X-Priority: 3 X-MSMail-priority: Normal References: <00b101c7ffb1$eadee940$0500000a@ILANC> <4706A479.3050902@sun.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_NextPart_000_006C_01C8084B.E441DC30 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: quoted-printable Hi, It might make sense to update Extent: public interface Extent extends Iterable { : : } and in PersistenceManager: Extent getExtent (Class cls, boolean subclasses); Extent getExtent (Class cls); This way, iteration over all the instances of a class could be = simplified: for (Person person : pm.getExtent(Person.class)) System.out.println(person.getName()); Ilan Kirsh ObjectDB Software http://www.objectdb.com ------=_NextPart_000_006C_01C8084B.E441DC30--