db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r598011 - /db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java
Date Sun, 25 Nov 2007 17:12:08 GMT
Author: andyj
Date: Sun Nov 25 09:12:07 2007
New Revision: 598011

URL: http://svn.apache.org/viewvc?rev=598011&view=rev
Log:
JDO-548 - addition of getManagedObjects() methods

Modified:
    db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java

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=598011&r1=598010&r2=598011&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java Sun Nov 25 09:12:07 2007
@@ -1185,4 +1185,29 @@
      * @since 2.1
      */
     Date getServerDate();
+
+    /**
+     * Get the objects enlisted in the current transaction.
+     * @return The objects
+     * @since 2.1
+     */
+    Collection getManagedObjects();
+
+    /**
+     * Get the objects enlisted in the current transaction having the
+     * specified object states.
+     * @param states The states of objects that we are interested in
+     * @return The objects
+     * @since 2.1
+     */
+    Collection getManagedObjects(ObjectState... states);
+
+    /**
+     * Get the objects enlisted in the current transaction being instances of
+     * the specified classes.
+     * @param classes The classes of objects that we are interested in
+     * @return The objects
+     * @since 2.1
+     */
+    Collection getManagedObjects(Class... classes);
 }



Mime
View raw message