Details

      Description

      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());

        Attachments

        1. jdo-542.patch
          3 kB
          Craig L Russell

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kirsh Ilan Kirsh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: