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

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

        Activity

        Ilan Kirsh created issue -
        Craig L Russell made changes -
        Field Original Value New Value
        Attachment jdo-542.patch [ 12367677 ]
        Craig L Russell made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Fix Version/s JDO 2 maintenance release 1 [ 12310923 ]
        Andy Jefferson made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development