Index: src/java/javax/jdo/Extent.java =================================================================== --- src/java/javax/jdo/Extent.java (revision 582408) +++ src/java/javax/jdo/Extent.java (working copy) @@ -22,6 +22,7 @@ package javax.jdo; +import java.lang.Iterable; import java.util.Iterator; /** Instances of the Extent class represent the entire collection @@ -33,16 +34,16 @@ *
  • to execute a Query in the data store over all instances * of a particular class * - * @version 2.0 + * @version 2.1 */ -public interface Extent { +public interface Extent extends Iterable { /** Returns an iterator over all the instances in the Extent. * The behavior of the returned iterator might depend on the setting of the * ignoreCache flag in the owning PersistenceManager. * @return an iterator over all instances in the Extent */ - Iterator iterator(); + Iterator iterator(); /** Returns whether this Extent was defined to contain subclasses. * @return true if this Extent was defined to contain instances @@ -54,7 +55,7 @@ * store; this method returns the Class of the instances. * @return the Class of instances of this Extent. */ - Class getCandidateClass(); + Class getCandidateClass(); /** An Extent is managed by a PersistenceManager; * this method gives access to the owning PersistenceManager. Index: src/java/javax/jdo/PersistenceManager.java =================================================================== --- src/java/javax/jdo/PersistenceManager.java (revision 582408) +++ src/java/javax/jdo/PersistenceManager.java (working copy) @@ -262,7 +262,7 @@ * @return an Extent of the specified Class * @see Query */ - Extent getExtent (Class persistenceCapableClass, boolean subclasses); + Extent getExtent (Class persistenceCapableClass, boolean subclasses); /** * Equivalent to getExtent (persistenceCapableClass, @@ -270,7 +270,7 @@ * @see #getExtent(Class,boolean) * @since 2.0 */ - Extent getExtent (Class persistenceCapableClass); + Extent getExtent (Class persistenceCapableClass); /** This method locates a persistent instance in the cache of instances * managed by this PersistenceManager. @@ -533,7 +533,7 @@ * parameter array * @see #makePersistent(Object pc) */ - T[] makePersistentAll (T[] pcs); + T[] makePersistentAll (T... pcs); /** Make a Collection of instances persistent. * @param pcs a Collection of instances