db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r381847 - /db/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerWrapper.java
Date Wed, 01 Mar 2006 00:26:47 GMT
Author: clr
Date: Tue Feb 28 16:26:45 2006
New Revision: 381847

URL: http://svn.apache.org/viewcvs?rev=381847&view=rev
Log:
JDO-322 Missing makeTransient(..., boolean useFetchPlan) methods in PMWrapper

Modified:
    db/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerWrapper.java

Modified: db/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerWrapper.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerWrapper.java?rev=381847&r1=381846&r2=381847&view=diff
==============================================================================
--- db/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerWrapper.java
(original)
+++ db/jdo/trunk/runtime20/src/java/org/apache/jdo/impl/pm/PersistenceManagerWrapper.java
Tue Feb 28 16:26:45 2006
@@ -669,6 +669,45 @@
    }
     
     /** 
+     * @see javax.jdo.PersistenceManager#makeTransient
+     * (Object pc, boolean useFetchPlan)
+     */
+    public void makeTransient(Object pc, boolean useFetchPlan){
+        if (isValid) { 
+            pm.makeTransient(pc, useFetchPlan);
+        } else { 
+            throw new JDOFatalUserException(msg.msg(
+                "EXC_PersistenceManagerClosed"));// NOI18N
+        } 
+   }
+    
+    /** 
+     * @see javax.jdo.PersistenceManager#makeTransientAll
+     * (Object[] pc, boolean useFetchPlan)
+     */
+    public void makeTransientAll(Object[] pcs, boolean useFetchPlan){
+        if (isValid) { 
+            pm.makeTransientAll(pcs, useFetchPlan);
+        } else { 
+            throw new JDOFatalUserException(msg.msg(
+                "EXC_PersistenceManagerClosed"));// NOI18N
+        } 
+   }
+    
+    /** 
+     * @see javax.jdo.PersistenceManager#makeTransientAll
+     * (Collection pcs, boolean useFetchPlan)
+     */
+    public void makeTransientAll (Collection pcs, boolean useFetchPlan){
+        if (isValid) { 
+            pm.makeTransientAll(pcs, useFetchPlan);
+        } else { 
+            throw new JDOFatalUserException(msg.msg(
+                "EXC_PersistenceManagerClosed"));// NOI18N
+        } 
+   }
+    
+    /** 
      * @see javax.jdo.PersistenceManager#makeTransactional(Object pc)
      */
     public void makeTransactional(Object pc){



Mime
View raw message