Class JDOExtent<E>
java.lang.Object
org.datanucleus.api.jdo.JDOExtent<E>
- Type Parameters:
E- type that this Extent is for.
- All Implemented Interfaces:
AutoCloseable, Iterable<E>, javax.jdo.Extent<E>
Wrapper implementation of a JDO Extent.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJDOExtent(javax.jdo.PersistenceManager pm, org.datanucleus.store.query.Extent extent) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidMethod to close the Extent iterator.voidcloseAll()Method to close all Extent iterators.Accessor for the candidate class of the Extent.org.datanucleus.store.query.Extent<E> Accessor for the real extent.javax.jdo.FetchPlanAccessor for the FetchPlan for the Extent.javax.jdo.PersistenceManagerAccessor for the PersistenceManager.booleanAccessor for whether the Extent includes subclasses.iterator()Accessor for an iterator for this Extent.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
closed
private boolean closed -
pm
javax.jdo.PersistenceManager pmUnderlying PersistenceManager. -
extent
org.datanucleus.store.query.Extent<E> extentUnderlying Extent. -
fetchPlan
JDOFetchPlan fetchPlanJDO Fetch Plan.
-
-
Constructor Details
-
JDOExtent
public JDOExtent(javax.jdo.PersistenceManager pm, org.datanucleus.store.query.Extent extent) Constructor.- Parameters:
pm- PersistenceManagerextent- Underlying Extent
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacejavax.jdo.Extent<E>
-
close
-
closeAll
public void closeAll()Method to close all Extent iterators.- Specified by:
closeAllin interfacejavax.jdo.Extent<E>
-
getCandidateClass
-
hasSubclasses
public boolean hasSubclasses()Accessor for whether the Extent includes subclasses.- Specified by:
hasSubclassesin interfacejavax.jdo.Extent<E>- Returns:
- Whether it has subclasses
-
getFetchPlan
public javax.jdo.FetchPlan getFetchPlan()Accessor for the FetchPlan for the Extent.- Specified by:
getFetchPlanin interfacejavax.jdo.Extent<E>- Returns:
- FetchPlan
-
getPersistenceManager
public javax.jdo.PersistenceManager getPersistenceManager()Accessor for the PersistenceManager.- Specified by:
getPersistenceManagerin interfacejavax.jdo.Extent<E>- Returns:
- The PM
-
getExtent
Accessor for the real extent.- Returns:
- The Underlying extent
-
iterator
-