Index: src/java/javax/jdo/PersistenceManager.java =================================================================== --- src/java/javax/jdo/PersistenceManager.java (revision 601047) +++ src/java/javax/jdo/PersistenceManager.java (working copy) @@ -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; @@ -1191,7 +1193,7 @@ * @return The objects * @since 2.1 */ - Collection getManagedObjects(); + Set getManagedObjects(); /** * Get the objects enlisted in the current transaction having the @@ -1200,7 +1202,7 @@ * @return The objects * @since 2.1 */ - Collection getManagedObjects(ObjectState... states); + Set getManagedObjects(EnumSet states); /** * Get the objects enlisted in the current transaction being instances of @@ -1209,5 +1211,14 @@ * @return The objects * @since 2.1 */ - Collection getManagedObjects(Class... classes); + Set getManagedObjects(Class... classes); + + /** + * Get the objects enlisted in the current transaction having the + * specified object states and being instances of the specified classes. + * @param states The states of objects that we are interested in + * @return The objects + * @since 2.1 + */ + Set getManagedObjects(EnumSet states, Class... classes); }