db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r601545 - in /db/jdo/trunk: api2-legacy/src/java/javax/jdo/PersistenceManager.java api2/src/java/javax/jdo/PersistenceManager.java
Date Wed, 05 Dec 2007 21:45:41 GMT
Author: clr
Date: Wed Dec  5 13:45:35 2007
New Revision: 601545

URL: http://svn.apache.org/viewvc?rev=601545&view=rev
Log:
JDO-548 Updated signatures of getManagedObjects methods to use Set as return value
and EnumSet<ObjectState> as parameter.

Modified:
    db/jdo/trunk/api2-legacy/src/java/javax/jdo/PersistenceManager.java
    db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.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=601545&r1=601544&r2=601545&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 Wed Dec  5 13:45:35
2007
@@ -24,6 +24,7 @@
 
 import java.util.Collection;
 import java.util.Date;
+import java.util.Set;
 
 import javax.jdo.datastore.JDOConnection;
 import javax.jdo.datastore.Sequence;
@@ -1187,18 +1188,18 @@
     Date getServerDate();
 
     /**
-     * Get the objects enlisted in the current transaction.
-     * @return The objects
+     * Get the objects managed by this persistence manager.
+     * @return the objects
      * @since 2.1
      */
-    Collection getManagedObjects();
+    Set getManagedObjects();
 
     /**
-     * Get the objects enlisted in the current transaction being instances of
+     * Get the objects managed by this persistence manager being instances of
      * the specified classes.
      * @param classes The classes of objects that we are interested in
-     * @return The objects
+     * @return the objects
      * @since 2.1
      */
-    Collection getManagedObjects(Class[] classes);
+    Set getManagedObjects(Class[] classes);
 }

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=601545&r1=601544&r2=601545&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java Wed Dec  5 13:45:35 2007
@@ -24,6 +24,8 @@
 
 import java.util.Collection;
 import java.util.Date;
+import java.util.EnumSet;
+import java.util.Set;
 
 import javax.jdo.datastore.JDOConnection;
 import javax.jdo.datastore.Sequence;
@@ -1187,27 +1189,37 @@
     Date getServerDate();
 
     /**
-     * Get the objects enlisted in the current transaction.
-     * @return The objects
+     * Get the objects managed by this persistence manager.
+     * @return the objects
      * @since 2.1
      */
-    Collection getManagedObjects();
+    Set getManagedObjects();
 
     /**
-     * Get the objects enlisted in the current transaction having the
+     * Get the objects managed by this persistence manager having the
      * specified object states.
      * @param states The states of objects that we are interested in
-     * @return The objects
+     * @return the objects
      * @since 2.1
      */
-    Collection getManagedObjects(ObjectState... states);
+    Set getManagedObjects(EnumSet<ObjectState> states);
 
     /**
-     * Get the objects enlisted in the current transaction being instances of
+     * Get the objects managed by this persistence manager being instances of
      * the specified classes.
      * @param classes The classes of objects that we are interested in
-     * @return The objects
+     * @return the objects
      * @since 2.1
      */
-    Collection getManagedObjects(Class... classes);
+    Set getManagedObjects(Class... classes);
+
+    /**
+     * Get the objects managed by this persistence manager having the
+     * specified object states and being instances of the specified classes.
+     * @param states The states of objects that we are interested in
+     * @param classes The classes of objects that we are interested in
+     * @return the objects
+     * @since 2.1
+     */
+    Set getManagedObjects(EnumSet<ObjectState> states, Class... classes);
 }



Mime
View raw message