Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-542

Adjusting Extent to Java 5.0

    XMLWordPrintableJSON

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

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

            Dates

              Created:
              Updated:
              Resolved: