Issue Details (XML | Word | Printable)

Key: JDO-282
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Craig Russell
Reporter: Matthew T. Adams
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Add convenience methods to get persistent instance and detached instance from InstanceLifecycleEvent

Created: 21/Jan/06 03:24 AM   Updated: 03/Feb/06 10:43 AM
Return to search
Component/s: api2
Affects Version/s: None
Fix Version/s: JDO 2 rc1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works InstanceLifecycleEvent.java.2.patch 2006-01-24 03:57 AM Matthew T. Adams 3 kB
Text File Licensed for inclusion in ASF works InstanceLifecycleEvent.patch 2006-01-21 04:19 AM Matthew T. Adams 4 kB

Resolution Date: 03/Feb/06 10:43 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Matthew T. Adams made changes - 21/Jan/06 04:19 AM
Field Original Value New Value
Attachment InstanceLifecycleEvent.patch [ 12322188 ]
Matthew T. Adams made changes - 21/Jan/06 04:56 AM
Status Open [ 1 ] In Progress [ 3 ]
Matthew T. Adams made changes - 24/Jan/06 03:57 AM
Attachment InstanceLifecycleEvent.java.2.patch [ 12322257 ]
Matthew T. Adams made changes - 25/Jan/06 08:30 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Matthew T. Adams made changes - 26/Jan/06 01:49 AM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Matthew T. Adams made changes - 26/Jan/06 01:51 AM
Assignee Matthew T. Adams [ matthewadams ] Craig Russell [ clr ]
Craig Russell made changes - 03/Feb/06 10:43 AM
Fix Version/s JDO 2 rc1 [ 12310771 ]
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]