db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: feature request
Date Wed, 31 Oct 2007 21:55:28 GMT
Hi Eric,

Right list.

If the biggest need you have is to recognize when objects have  
changed, have you looked at the listeners and callback interfaces?  
These were put in for this kind of requirement.

Regards,

Craig

On Oct 31, 2007, at 1:43 PM, Eric Lindauer wrote:

> Hi all,
>
> Long time JDO user, first time poster.
>
> I'd like to see JDO include a mechanism for accessing all the  
> objects that
> are:
>
> a. enlisted in a particular transaction
> b. managed by a particular persistence manager in it's level 1 cache
>
> Either would do for my purposes, though I think they are both  
> potentially
> useful.  The most immediate need for these methods is to provide a  
> mechanism
> for an application to recognize when the data in a particular
> PersistenceCapable object has changed, and make callbacks / refresh  
> data /
> etc.
>
> I propose the following method signatures:
>
> in javax.jdo.PersistenceManager:
>     public Collection getManagedObjects();
>
> in javax.jdo.Transaction:
>     public Collection getEnlistedObjects();
>
>
> Thanks for your consideration.  I apologize if I've written to the  
> wrong
> list.
>
>      Sincerely,
>       Eric Lindauer

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message