db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r616096 - in /db/jdo/trunk: api2-legacy/src/java/javax/jdo/ api2-legacy/src/java/javax/jdo/datastore/ api2/src/java/javax/jdo/ api2/src/java/javax/jdo/datastore/
Date Mon, 28 Jan 2008 22:44:40 GMT
Author: clr
Date: Mon Jan 28 14:44:38 2008
New Revision: 616096

URL: http://svn.apache.org/viewvc?rev=616096&view=rev
Log:
JDO-572 Change parameters on evictAll, pinAll, and unpinAll from Class pcClass, boolean subclasses
to boolean subclasses , Class pcClass.

Modified:
    db/jdo/trunk/api2-legacy/src/java/javax/jdo/PersistenceManager.java
    db/jdo/trunk/api2-legacy/src/java/javax/jdo/datastore/DataStoreCache.java
    db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java
    db/jdo/trunk/api2/src/java/javax/jdo/datastore/DataStoreCache.java

Modified: db/jdo/trunk/api2-legacy/src/java/javax/jdo/PersistenceManager.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2-legacy/src/java/javax/jdo/PersistenceManager.java?rev=616096&r1=616095&r2=616096&view=diff
==============================================================================
--- db/jdo/trunk/api2-legacy/src/java/javax/jdo/PersistenceManager.java (original)
+++ db/jdo/trunk/api2-legacy/src/java/javax/jdo/PersistenceManager.java Mon Jan 28 14:44:38
2008
@@ -105,7 +105,7 @@
      * @param subclasses if true, mark instances of subclasses also
      * @since 2.1
      */
-    void evictAll (Class pcClass, boolean subclasses);
+    void evictAll (boolean subclasses, Class pcClass);
 
     /** Mark all persistent-nontransactional instances as no longer needed 
      * in the cache.  It transitions

Modified: db/jdo/trunk/api2-legacy/src/java/javax/jdo/datastore/DataStoreCache.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2-legacy/src/java/javax/jdo/datastore/DataStoreCache.java?rev=616096&r1=616095&r2=616096&view=diff
==============================================================================
--- db/jdo/trunk/api2-legacy/src/java/javax/jdo/datastore/DataStoreCache.java (original)
+++ db/jdo/trunk/api2-legacy/src/java/javax/jdo/datastore/DataStoreCache.java Mon Jan 28 14:44:38
2008
@@ -64,9 +64,17 @@
      * @param pcClass the class of instances to evict
      * @param subclasses if true, evict instances of subclasses also
      * @since 2.0
+     * @deprecated use evictAll (boolean subclasses, Class pcClass)
      */
     void evictAll (Class pcClass, boolean subclasses);
 
+    /** Evict the parameter instances from the second-level cache.
+     * @param pcClass the class of instances to evict
+     * @param subclasses if true, evict instances of subclasses also
+     * @since 2.1
+     */
+    void evictAll (boolean subclasses, Class pcClass);
+
     /** Pin the parameter instance in the second-level cache.
      * @param oid the object id of the instance to pin.
      * @since 2.0
@@ -89,9 +97,17 @@
      * @param pcClass the class of instances to pin
      * @param subclasses if true, pin instances of subclasses also
      * @since 2.0
+     * @deprecated use pinAll (boolean subclasses, Class pcClass)
      */
     void pinAll (Class pcClass, boolean subclasses);
 
+    /** Pin instances in the second-level cache.
+     * @param pcClass the class of instances to pin
+     * @param subclasses if true, pin instances of subclasses also
+     * @since 2.1
+     */
+    void pinAll (boolean subclasses, Class pcClass);
+
     /** Unpin the parameter instance from the second-level cache.
      * @param oid the object id of the instance to unpin.
      * @since 2.0
@@ -114,9 +130,17 @@
      * @param pcClass the class of instances to unpin
      * @param subclasses if true, unpin instances of subclasses also
      * @since 2.0
+     * @deprecated use unpinAll(boolean subclasses, Class pcClass)
      */
     void unpinAll(Class pcClass, boolean subclasses);
     
+    /** Unpin instances from the second-level cache.
+     * @param pcClass the class of instances to unpin
+     * @param subclasses if true, unpin instances of subclasses also
+     * @since 2.1
+     */
+    void unpinAll(boolean subclasses, Class pcClass);
+    
     /** 
      * This class is an empty implementation of the DataStoreCache 
      * interface. It can be used by an implementation that does not
@@ -143,6 +167,9 @@
         public void evictAll(Class pcClass, boolean subclasses) {
         }
 
+        public void evictAll(boolean subclasses, Class pcClass) {
+        }
+
         public void pin(Object oid) {
         }
 
@@ -155,6 +182,9 @@
         public void pinAll(Class pcClass, boolean subclasses) {
         }
 
+        public void pinAll(boolean subclasses, Class pcClass) {
+        }
+
         public void unpin(Object oid) {
         }
 
@@ -165,6 +195,9 @@
         }
 
         public void unpinAll(Class pcClass, boolean subclasses) {
+        }
+
+        public void unpinAll(boolean subclasses, Class pcClass) {
         }
     }
 }

Modified: db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java?rev=616096&r1=616095&r2=616096&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java Mon Jan 28 14:44:38 2008
@@ -106,7 +106,7 @@
      * @param subclasses if true, mark instances of subclasses also
      * @since 2.1
      */
-    void evictAll (Class pcClass, boolean subclasses);
+    void evictAll (boolean subclasses, Class pcClass);
 
     /** Mark all persistent-nontransactional instances as no longer needed 
      * in the cache.  It transitions

Modified: db/jdo/trunk/api2/src/java/javax/jdo/datastore/DataStoreCache.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/datastore/DataStoreCache.java?rev=616096&r1=616095&r2=616096&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/datastore/DataStoreCache.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/datastore/DataStoreCache.java Mon Jan 28 14:44:38
2008
@@ -64,9 +64,17 @@
      * @param pcClass the class of instances to evict
      * @param subclasses if true, evict instances of subclasses also
      * @since 2.0
+     * @deprecated use evictAll (boolean subclasses, Class pcClass)
      */
     void evictAll (Class pcClass, boolean subclasses);
 
+    /** Evict the parameter instances from the second-level cache.
+     * @param pcClass the class of instances to evict
+     * @param subclasses if true, evict instances of subclasses also
+     * @since 2.1
+     */
+    void evictAll (boolean subclasses, Class pcClass);
+
     /** Pin the parameter instance in the second-level cache.
      * @param oid the object id of the instance to pin.
      * @since 2.0
@@ -89,9 +97,17 @@
      * @param pcClass the class of instances to pin
      * @param subclasses if true, pin instances of subclasses also
      * @since 2.0
+     * @deprecated use pinAll (boolean subclasses, Class pcClass)
      */
     void pinAll (Class pcClass, boolean subclasses);
 
+    /** Pin instances in the second-level cache.
+     * @param pcClass the class of instances to pin
+     * @param subclasses if true, pin instances of subclasses also
+     * @since 2.1
+     */
+    void pinAll (boolean subclasses, Class pcClass);
+
     /** Unpin the parameter instance from the second-level cache.
      * @param oid the object id of the instance to unpin.
      * @since 2.0
@@ -114,9 +130,17 @@
      * @param pcClass the class of instances to unpin
      * @param subclasses if true, unpin instances of subclasses also
      * @since 2.0
+     * @deprecated use unpinAll(boolean subclasses, Class pcClass)
      */
     void unpinAll(Class pcClass, boolean subclasses);
     
+    /** Unpin instances from the second-level cache.
+     * @param pcClass the class of instances to unpin
+     * @param subclasses if true, unpin instances of subclasses also
+     * @since 2.1
+     */
+    void unpinAll(boolean subclasses, Class pcClass);
+    
     /** 
      * This class is an empty implementation of the DataStoreCache 
      * interface. It can be used by an implementation that does not
@@ -143,6 +167,9 @@
         public void evictAll(Class pcClass, boolean subclasses) {
         }
 
+        public void evictAll(boolean subclasses, Class pcClass) {
+        }
+
         public void pin(Object oid) {
         }
 
@@ -155,6 +182,9 @@
         public void pinAll(Class pcClass, boolean subclasses) {
         }
 
+        public void pinAll(boolean subclasses, Class pcClass) {
+        }
+
         public void unpin(Object oid) {
         }
 
@@ -165,6 +195,9 @@
         }
 
         public void unpinAll(Class pcClass, boolean subclasses) {
+        }
+
+        public void unpinAll(boolean subclasses, Class pcClass) {
         }
     }
 }



Mime
View raw message