+ * instance before the copy is made.
* @since 2.0
*/
public void jdoPreAttach();
/**
* This method is called during the execution of
- * [EMAIL PROTECTED] PersistenceManager#attachCopy} on the persistent
+ * [EMAIL PROTECTED] PersistenceManager#makePersistent} on the persistent
* instance after the copy is made.
* @param attached The corresponding (non-attached) instance that was
- * attached in the call to [EMAIL PROTECTED] PersistenceManager#attachCopy}.
+ * attached in the call to [EMAIL PROTECTED] PersistenceManager#makePersistent}.
* @since 2.0
*/
public void jdoPostAttach(Object attached);
Index: src/java/javax/jdo/listener/AttachLifecycleListener.java
===================================================================
--- src/java/javax/jdo/listener/AttachLifecycleListener.java (Revision 360481)
+++ src/java/javax/jdo/listener/AttachLifecycleListener.java (Arbeitskopie)
@@ -33,19 +33,23 @@
extends InstanceLifecycleListener {
/**
- * This method is called during the execution of
- * [EMAIL PROTECTED] PersistenceManager#attachCopy} before the copy is made.
- * It is called before the method [EMAIL PROTECTED] AttachCallback#jdoPreAttach}
- * is invoked on the instance to be attached.
+ * This method is called before a detached instance is attached, via the
+ * [EMAIL PROTECTED] PersistenceManager#makePersistent} method. The source instance
+ * is the detached instance. This method is called before the
+ * corresponding [EMAIL PROTECTED] AttachCallback#jdoPreAttach} on the detached
+ * instance.
* @param event the attach event.
* @since 2.0
- */
+ */
void preAttach (InstanceLifecycleEvent event);
/**
- * This method is called during the execution of
- * [EMAIL PROTECTED] PersistenceManager#attachCopy} on the persistent
- * instance after the copy is made.
+ * This method is called after a detached instance is attached, via the
+ * [EMAIL PROTECTED] PersistenceManager#makePersistent} method. The source
+ * instance is the corresponding persistent instance in the cache; the
+ * target instance is the detached instance. This method is called after
+ * the corresponding [EMAIL PROTECTED] AttachCallback#jdoPostAttach} on the
+ * persistent instance.
* @param event the attach event.
* @since 2.0
*/
Michael Bouschen updated JDO-257:
---------------------------------
Attachment: attachInterfaces.patch
Attached you find a patch (attachInterfaces.patch) for review. It removes javadoc references to PM.attachCopy which has been removed.
Change return type of makePersistent from void to Object
--------------------------------------------------------
Key: JDO-257
Project: JDO
Type: New Feature
Components: api20
Reporter: Craig Russell
Assignee: Craig Russell
Fix For: JDO 2 beta
Attachments: attachInterfaces.patch, persistencemanager.patch
The signatures of makePersistent and makePersistentAll are changed to return the persistent instances. This change was adopted by the expert group 8-Dec-2005.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
-
For more information on JIRA, see:
P.S. A good JDO? O, Gasp!