db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r355585 - /incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java
Date Fri, 09 Dec 2005 19:53:46 GMT
Author: clr
Date: Fri Dec  9 11:53:43 2005
New Revision: 355585

URL: http://svn.apache.org/viewcvs?rev=355585&view=rev
Log:
JDO-257 Changed signatures of makePersistent to return Object

Modified:
    incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java

Modified: incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java?rev=355585&r1=355584&r2=355585&view=diff
==============================================================================
--- incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java (original)
+++ incubator/jdo/trunk/api20/src/java/javax/jdo/PersistenceManager.java Fri Dec  9 11:53:43
2005
@@ -451,22 +451,27 @@
      * reachable from persistent
      * fields will be made persistent at commit.  [This is known as 
      * persistence by reachability.]
+     * Detached instances will not be made persistent. Instead, a persistent
+     * instance with the same persistent identity is located in the 
+     * cache and changes are applied to the persistent instance. The
+     * persistent instance is returned.
      * @param pc a transient instance of a <code>Class</code> that implements
+     * @return the persistent instance
      * <code>PersistenceCapable</code>
      */
-    void makePersistent (Object pc);
+    Object makePersistent (Object pc);
     
     /** Make an array of instances persistent.
      * @param pcs an array of transient instances
      * @see #makePersistent(Object pc)
      */
-    void makePersistentAll (Object[] pcs);
+    Object[] makePersistentAll (Object[] pcs);
     
     /** Make a <code>Collection</code> of instances persistent.
      * @param pcs a <code>Collection</code> of transient instances
      * @see #makePersistent(Object pc)
      */
-    void makePersistentAll (Collection pcs);
+    Collection makePersistentAll (Collection pcs);
     
     /** Delete the persistent instance from the data store.
      * This method must be called in an active transaction.



Mime
View raw message