Apache JDO Project - Negative VOTE Issue 156: deletePersistent() with a detached object

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > February 2006 > Negative VOTE Issue 156: deletePersistent() with a detached object





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Negative VOTE Issue 156: deletePersistent() with a detached object
Craig L Russell

2006-02-06, 5:45 pm

Matthew T. Adams

2006-02-06, 5:45 pm

I agree, but would add specific verbage in the event that any
InstanceLifecycle listeners would receive callbacks as well:

<proposed version="2">
If the parameter instance of deletePersistent() is a detached
instance, the method applies to the associated persistent instance.
Similarly, if any of the parameter instances of deletePersistentAll()
is a detached instance, the method applies to the associated
persistent instances. If the class of instances to be deleted
implements the delete callback, then the persistent instance is
instantiated and the callback is executed. If there are any
InstanceLifecycleListeners registered for deletion callbacks of
instances of the detached object's class, the persistent instance
is instantiated and passed to the listener in the event object
as described in section 12.15.
</proposed>

>-----Original Message-----
>From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM]
>Sent: Monday, February 06, 2006 2:01 PM
>To: jdo-dev@db.apache.org
>Cc: andy@jpox.org; jdo-experts-ext@Sun.COM
>Subject: Negative VOTE Issue 156: deletePersistent() with a
>detached object
>
>
>Javadogs,
>
>I agree. Here's a proposed spec update for 12.6.7:
>
><proposed>
>If the parameter instance of deletePersistent() is a detached
>instance, the method applies to the associated persistent instance.
>Similarly, if any of the parameter instances of deletePersistentAll()
>is a detached instance, the method applies to the associated
>persistent instances. If the class of instances to be deleted
>implements the delete callback, then the persistent instance is
>instantiated and the callback is executed.
></proposed>
>
>Craig
>
>On Feb 6, 2006, at 8:54 AM, Matthew T. Adams wrote:
>
>
>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!
>
>




Craig L Russell

2006-02-06, 5:45 pm

Matthew T. Adams

2006-02-06, 5:45 pm

+1, then, from me.

>-----Original Message-----
>From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM]
>Sent: Monday, February 06, 2006 2:38 PM
>Cc: Apache JDO project; JDO Expert Group
>Subject: Re: Negative VOTE Issue 156: deletePersistent() with
>a detached object
>
>
>I agree.
>
>Craig
>
>On Feb 6, 2006, at 2:27 PM, Matthew T. Adams wrote:
>
>
>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!
>
>




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com