db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Adjusting Extent to Java 5.0
Date Sat, 06 Oct 2007 17:45:33 GMT
Hi Ilan,

Great idea. Would you mind updating the JIRA?

Craig

On Oct 6, 2007, at 10:05 AM, Ilan Kirsh wrote:

> Hi,
>
> It might make sense to update Extent:
>
> public interface Extent<E> extends Iterable<E> {
>     :
>     :
> }
>
> and in PersistenceManager:
>
> Extent<T> getExtent (Class<T> cls, boolean subclasses);
> Extent<T> getExtent (Class<T> 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
>
>
>
>
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message