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 Fwd: getAllReferencingObjects(Object object) request
Date Fri, 15 Jun 2007 17:19:04 GMT
What do you all think of this?

Craig

Begin forwarded message:

> From: Christiaan des Bouvrie <c.des.Bouvrie@CostEngineering.eu>
> Date: June 15, 2007 1:34:23 AM PDT
> To: jdo-user@db.apache.org
> Subject: getAllReferencingObjects(Object object) request
> Reply-To: jdo-user@db.apache.org
>
> Dear all,
>
>
>
> I would like to make a feature request for a
> getAllReferencingObjects(Object object) method, which should return a
> set of pc objects which have a reference to the specified pc object.
>
>
>
> This would be really convenient for instance when deleting an  
> object to
> make sure all references are set to null. In the domain I am working I
> have a network of all kinds of objects where each object can be  
> deleted
> and thus all other objects have to update their reference. I currently
> have a generic delete algorithm which recursively asks all (cascaded
> deleted) objects to get their references in order to update them. Of
> course, this method would also be quite convenient in unittest to make
> sure you have updated everything properly.
>
>
>
> Kind regards,
>
> Christiaan
>
>
>

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