db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r1676908 - in /db/jdo/trunk/api/src/java/javax/jdo: PersistenceManager.java datastore/DataStoreCache.java
Date Thu, 30 Apr 2015 06:38:18 GMT
Author: andyj
Date: Thu Apr 30 06:38:18 2015
New Revision: 1676908

URL: http://svn.apache.org/r1676908
Log:
JDO-687 Drop deprecated methods, 6+ yrs is enough time to get used to them

Modified:
    db/jdo/trunk/api/src/java/javax/jdo/PersistenceManager.java
    db/jdo/trunk/api/src/java/javax/jdo/datastore/DataStoreCache.java

Modified: db/jdo/trunk/api/src/java/javax/jdo/PersistenceManager.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/PersistenceManager.java?rev=1676908&r1=1676907&r2=1676908&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/PersistenceManager.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/PersistenceManager.java Thu Apr 30 06:38:18 2015
@@ -455,20 +455,6 @@ public interface PersistenceManager {
      * @return the objects that were looked up, in the
      *     same order as the oids parameter.
      * @see #getObjectById(Object,boolean)
-     * @see #getObjectsById(boolean,Object...)
-     * @deprecated
-     * @since 2.0
-     */
-    Object[] getObjectsById (Object[] oids, boolean validate);
-
-    /**
-     * Return the objects with the given oids.
-     * @param oids the oids of the objects to return
-     * @param validate if true, the existance of the objects in
-     *     the datastore will be validated.
-     * @return the objects that were looked up, in the
-     *     same order as the oids parameter.
-     * @see #getObjectById(Object,boolean)
      * @since 2.1
      */
     Object[] getObjectsById (boolean validate, Object... oids);
@@ -657,29 +643,6 @@ public interface PersistenceManager {
      * @param pcs the root instances to make transient.
      * @param useFetchPlan whether to use the current fetch plan to determine
      * which fields to load and which instances to make transient
-     * @see #makeTransientAll(boolean,Object...)
-     * @deprecated
-     * @since 2.0
-     */
-    void makeTransientAll (Object[] pcs, boolean useFetchPlan);
-    
-    /** Make instances transient, removing them from management
-     * by this <code>PersistenceManager</code>. If the useFetchPlan parameter
-     * is false, this method behaves exactly as makeTransientAll(Object[] pcs). 
-     * <P>The affected instance(s) lose their JDO identity and are no longer 
-     * associated with any <code>PersistenceManager</code>.  The state 
-     * of fields is unchanged.
-     * <P>If the useFetchPlan parameter is true, then the current FetchPlan
-     * is applied to the pcs parameters and the entire graph of instances 
-     * reachable via loaded fields is made transient. The state of fields
-     * in the affected instances is as specified by the FetchPlan.
-     * <P>Unlike detachCopy, the instances are not detached; there is no
-     * detachment information in the instances.
-     * <P>The instances to be made transient do not need to
-     * implement the javax.jdo.spi.Detachable interface.
-     * @param pcs the root instances to make transient.
-     * @param useFetchPlan whether to use the current fetch plan to determine
-     * which fields to load and which instances to make transient
      * @since 2.1
      */
     void makeTransientAll (boolean useFetchPlan, Object... pcs);
@@ -830,30 +793,7 @@ public interface PersistenceManager {
      * @param pcs the instances
      */
     void retrieveAll (Object... pcs);
-           
-    /** Retrieve field values of instances from the store.  This tells
-     * the <code>PersistenceManager</code> that the application intends to use

-     * the instances, and their field values should be retrieved.  The fields
-     * in the current fetch group must be retrieved, and the implementation
-     * might retrieve more fields than the current fetch group.
-     * <P>If the useFetchPlan parameter is false, this method behaves exactly
-     * as the corresponding method without the useFetchPlan parameter. 
-     * If the useFetchPlan parameter is true, and the fetch plan has not been
-     * modified from its default setting, all fields in the current fetch plan
-     * are fetched, and other fields might be fetched lazily by the
-     * implementation. If the useFetchPlan parameter is true, and the fetch
-     * plan has been changed from its default setting, then the fields
-     * specified by the fetch plan are loaded, along with related instances
-     * specified by the fetch plan.
-     * @param pcs the instances
-     * @param useFetchPlan whether to use the current fetch plan to determine
-     * which fields to load and which instances to retrieve.
-     * @deprecated
-     * @see #retrieveAll(boolean,Object...)
-     * @since 1.0.1
-     */
-    void retrieveAll (Object[] pcs, boolean useFetchPlan);
-           
+  
     /** Retrieve field values of instances from the store.  This tells
      * the <code>PersistenceManager</code> that the application intends to use

      * the instances, and their field values should be retrieved.  The fields

Modified: db/jdo/trunk/api/src/java/javax/jdo/datastore/DataStoreCache.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/datastore/DataStoreCache.java?rev=1676908&r1=1676907&r2=1676908&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/datastore/DataStoreCache.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/datastore/DataStoreCache.java Thu Apr 30 06:38:18
2015
@@ -19,17 +19,14 @@
  * DataStoreCache.java
  *
  */
- 
 package javax.jdo.datastore;
 
 import java.util.Collection;
 
-
 /** 
  * Many JDO implementations allow instances to be cached in a
  * second-level cache, and allow direct management of the cache by
- * knowledgeable applications. This interface standardizes this
- * behavior.
+ * knowledgeable applications. This interface standardizes this behavior.
  * @since 2.0
  * @version 2.0
  */
@@ -63,14 +60,6 @@ public interface DataStoreCache {
     /** 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.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);
@@ -96,14 +85,6 @@ public interface DataStoreCache {
     /** 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.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);
@@ -125,14 +106,6 @@ public interface DataStoreCache {
      * @since 2.0
      */
     void unpinAll(Object... oids);
-
-    /** 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.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
@@ -164,9 +137,6 @@ public interface DataStoreCache {
         public void evictAll(Collection oids) {
         }
 
-        public void evictAll(Class pcClass, boolean subclasses) {
-        }
-
         public void evictAll(boolean subclasses, Class pcClass) {
         }
 
@@ -179,9 +149,6 @@ public interface DataStoreCache {
         public void pinAll(Collection oids) {
         }
 
-        public void pinAll(Class pcClass, boolean subclasses) {
-        }
-
         public void pinAll(boolean subclasses, Class pcClass) {
         }
 
@@ -194,9 +161,6 @@ public interface DataStoreCache {
         public void unpinAll(Collection oids) {
         }
 
-        public void unpinAll(Class pcClass, boolean subclasses) {
-        }
-
         public void unpinAll(boolean subclasses, Class pcClass) {
         }
     }



Mime
View raw message