db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew T. Adams (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-282) Add convenience methods to get persistent instance and detached instance from InstanceLifecycleEvent
Date Fri, 20 Jan 2006 19:20:44 GMT
     [ http://issues.apache.org/jira/browse/JDO-282?page=all ]

Matthew T. Adams updated JDO-282:
---------------------------------

    Attachment: InstanceLifecycleEvent.patch

Here's the patch.  This was harder than I thought, which, IMHO, illustrates its value.  I
created the patch relative to the directory trunk/api20.  I would also like to see this included
in the upcoming 2.0-beta release if possible.

> Add convenience methods to get persistent instance and detached instance from InstanceLifecycleEvent
> ----------------------------------------------------------------------------------------------------
>
>          Key: JDO-282
>          URL: http://issues.apache.org/jira/browse/JDO-282
>      Project: JDO
>         Type: Improvement
>   Components: api20
>     Reporter: Matthew T. Adams
>     Assignee: Matthew T. Adams
>  Attachments: InstanceLifecycleEvent.patch
>
> The source and target object differ as to whether they are the persistent or detached
instance in class InstanceLifecycleEvent depending upon whether the event object is given
in the preDetach, postDetach, preAttach, or postAttach callbacks.  I propose adding two convenience
methods that makes it obvious from the API which object the user is getting.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message