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






Reply via email to