You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by mb...@apache.org on 2006/01/02 15:56:47 UTC
svn commit: r365353 - in /db/jdo/trunk/api20/src/java/javax/jdo/listener:
AttachCallback.java AttachLifecycleListener.java
Author: mbo
Date: Mon Jan 2 06:56:43 2006
New Revision: 365353
URL: http://svn.apache.org/viewcvs?rev=365353&view=rev
Log:
JDO-257 remove javadoc references to PM.attachCopy
Modified:
db/jdo/trunk/api20/src/java/javax/jdo/listener/AttachCallback.java
db/jdo/trunk/api20/src/java/javax/jdo/listener/AttachLifecycleListener.java
Modified: db/jdo/trunk/api20/src/java/javax/jdo/listener/AttachCallback.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/api20/src/java/javax/jdo/listener/AttachCallback.java?rev=365353&r1=365352&r2=365353&view=diff
==============================================================================
--- db/jdo/trunk/api20/src/java/javax/jdo/listener/AttachCallback.java (original)
+++ db/jdo/trunk/api20/src/java/javax/jdo/listener/AttachCallback.java Mon Jan 2 06:56:43 2006
@@ -32,17 +32,18 @@
/**
* This method is called during the execution of
- * {@link PersistenceManager#attachCopy} before the copy is made.
+ * {@link PersistenceManager#makePersistent} on the detached instance
+ * before the copy is made.
* @since 2.0
*/
public void jdoPreAttach();
/**
* This method is called during the execution of
- * {@link PersistenceManager#attachCopy} on the persistent
+ * {@link 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 {@link PersistenceManager#attachCopy}.
+ * attached in the call to {@link PersistenceManager#makePersistent}.
* @since 2.0
*/
public void jdoPostAttach(Object attached);
Modified: db/jdo/trunk/api20/src/java/javax/jdo/listener/AttachLifecycleListener.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/api20/src/java/javax/jdo/listener/AttachLifecycleListener.java?rev=365353&r1=365352&r2=365353&view=diff
==============================================================================
--- db/jdo/trunk/api20/src/java/javax/jdo/listener/AttachLifecycleListener.java (original)
+++ db/jdo/trunk/api20/src/java/javax/jdo/listener/AttachLifecycleListener.java Mon Jan 2 06:56:43 2006
@@ -33,19 +33,23 @@
extends InstanceLifecycleListener {
/**
- * This method is called during the execution of
- * {@link PersistenceManager#attachCopy} before the copy is made.
- * It is called before the method {@link AttachCallback#jdoPreAttach}
- * is invoked on the instance to be attached.
+ * This method is called before a detached instance is attached, via the
+ * {@link PersistenceManager#makePersistent} method. The source instance
+ * is the detached instance. This method is called before the
+ * corresponding {@link 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
- * {@link PersistenceManager#attachCopy} on the persistent
- * instance after the copy is made.
+ * This method is called after a detached instance is attached, via the
+ * {@link 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 {@link AttachCallback#jdoPostAttach} on the
+ * persistent instance.
* @param event the attach event.
* @since 2.0
*/