
| Key: |
JDO-368
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Invalid
|
| Priority: |
Major
|
| Assignee: |
Craig Russell
|
| Reporter: |
Dave
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
04/Jun/06 12:13 AM
|
|
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.
|
|
Description
|
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. |
Show » |
|
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.