db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JDO-542) Adjusting Extent to Java 5.0
Date Wed, 17 Oct 2007 18:04:50 GMT

     [ https://issues.apache.org/jira/browse/JDO-542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Craig Russell resolved JDO-542.
-------------------------------

       Resolution: Fixed
    Fix Version/s: JDO 2 maintenance release 1

Changes were committed to svn.

> Adjusting Extent to Java 5.0
> ----------------------------
>
>                 Key: JDO-542
>                 URL: https://issues.apache.org/jira/browse/JDO-542
>             Project: JDO
>          Issue Type: Improvement
>          Components: api2, api2-legacy
>            Reporter: Ilan Kirsh
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: jdo-542.patch
>
>
> 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());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message