[jira] Updated: (JDO-542) Adjusting Extent to Java 5.0
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Updated: (JDO-542) Adjusting Extent to Java 5.0




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Updated: (JDO-542) Adjusting Extent to Java 5.0  
Craig Russell (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-13-07 12:11 PM


[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]

Craig Russell updated JDO-542:
------------------------------

Attachment: jdo-542.patch

This patch implements the suggested change to Extent, adding Class<T> getCan
didateClass().

> 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
>         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.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:27 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register