db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r359422 - in /db/jdo/trunk: api20/src/java/javax/jdo/PersistenceManager.java tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java
Date Wed, 28 Dec 2005 06:51:20 GMT
Author: clr
Date: Tue Dec 27 22:51:18 2005
New Revision: 359422

URL: http://svn.apache.org/viewcvs?rev=359422&view=rev
Log:
JDO-257 removed attachCopy and attachCopyAll methods; left comments to be removed later

Modified:
    db/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java
    db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java

Modified: db/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java?rev=359422&r1=359421&r2=359422&view=diff
==============================================================================
--- db/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java (original)
+++ db/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java Tue Dec 27 22:51:18 2005
@@ -837,8 +837,9 @@
      * @return the re-attached instance
      * @see #attachCopyAll(Object[],boolean)
      * @since		2.0
+     * This method has been removed. See makePersistent.
      */
-    Object attachCopy (Object pc, boolean makeTransactional);
+//    Object attachCopy (Object pc, boolean makeTransactional);
 
     /**
      * Import the specified objects into the
@@ -850,8 +851,9 @@
      * @return the re-attached instances
      * @see #attachCopyAll(Object[],boolean)
      * @since 2.0
+     * This method has been removed. See makePersistentAll.
      */
-    Collection attachCopyAll (Collection pcs, boolean makeTransactional);
+ //   Collection attachCopyAll (Collection pcs, boolean makeTransactional);
 
     /**
      * Import the specified objects into the
@@ -867,8 +869,9 @@
      * @return the re-attached instances
      * @see #detachCopyAll(Object[])
      * @since 2.0
+     * This method has been removed. See makePersistentAll.
      */
-    Object[] attachCopyAll (Object[] pcs, boolean makeTransactional);
+  //  Object[] attachCopyAll (Object[] pcs, boolean makeTransactional);
 
     /**
      * Put the specified key-value pair into the map of user objects.

Modified: db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java?rev=359422&r1=359421&r2=359422&view=diff
==============================================================================
--- db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java
(original)
+++ db/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java
Tue Dec 27 22:51:18 2005
@@ -104,8 +104,8 @@
         pm.currentTransaction().commit();
         pm.currentTransaction().begin();
         listener.setExpectedSource(detached);
-        // attachCopy should cause the attach listeners to be called
-        PC attached = (PC)pm.attachCopy(detached, false);
+        // makePersistent should cause the attach listeners to be called
+        PC attached = (PC)pm.makePersistent(detached);
         pm.currentTransaction().commit();
 
         // now check the callback and listener were called



Mime
View raw message