Apache JDO Project - [jira] Resolved: (JDO-368) AttachCallback javadoc issue

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > June 2006 > [jira] Resolved: (JDO-368) AttachCallback javadoc issue





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 [jira] Resolved: (JDO-368) AttachCallback javadoc issue
Craig Russell (JIRA)

2006-06-03, 1:11 pm

[ http://issues.apache.org/jira/browse/JDO-368?page=all ]

Craig Russell resolved JDO-368:
-------------------------------

Resolution: Invalid
Assign To: Craig Russell

The AttachCallback methods are called during makePersistent if there is a detached instance among the reachable instances of the parameter to makePersistent.

During makePersistent on a detached instance, a persistent copy of the detached instance is made (or an existing persistent instance in the cache with the same object identity is located).

Thus, there are two distinct instances: the detached instance; and the corresponding persistent instance.

The jdoPreAttach method is invoked on the detached instance.

The jdoPostAttach method is invoked on the persistent instance, with the detached instance as the parameter.



> AttachCallback javadoc issue
> -----------------------------
>
> Key: JDO-368
> URL: http://issues.apache.org/jira/browse/JDO-368
> Project: JDO
> Type: Bug


> Components: api20
> Versions: JDO 2 rc1
> Environment: N/A
> Reporter: Dave
> Assignee: Craig Russell


>
> Javadoc issue.
> Descriptions of the AttachCallback methods appear to be copied from DetachCallback. A copy is made during Detach, but not Attach. Which instance are these methods executed on? The attaching copy, or the persistent copy?
> jdoPostAttach(java.lang.Object attached)
> This method is called during the execution of PersistenceManager.makePersistent(java.lang.Object) on the persistent instance after the copy is made.
> void jdoPreAttach()
> This method is called during the execution of PersistenceManager.makePersistent(java.lang.Object) on the detached instance before the copy is made.


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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com