| java.lang.Object org.objectweb.speedo.query.jdo.JDOExtent
JDOExtent | public class JDOExtent implements Extent(Code) | | |
Method Summary | |
public synchronized void | close(Iterator it) Close an Iterator associated with this Extent instance. | public synchronized void | closeAll() Close all Iterators associated with this Extent instance. | public Class | getCandidateClass() | public FetchPlan | getFetchPlan() | public PersistenceManager | getPersistenceManager() An Extent is managed by a PersistenceManager; this method gives access
to the owning PersistenceManager. | public boolean | hasSubclasses() Returns whether this Extent was defined to contain subclasses. | public synchronized Iterator | iterator() Returns an iterator over all the instances in the Extent. | public void | setFetchPlan(FetchPlan fp) |
JDOExtent | public JDOExtent(Class candidateClass, boolean hasSubclasses, JDOPOManagerItf pm, JormFactory jf, boolean prefetch, Logger logger)(Code) | | create a new SpeedoExtent object, this object is not obtained by a
call to 'new' by the client application, but by the PersistenceManager
object with getExtent() method
Parameters: candidateClass - Parameters: hasSubclasses - Parameters: pm - |
close | public synchronized void close(Iterator it)(Code) | | Close an Iterator associated with this Extent instance. Iterators closed
by this method will return false to hasNext() and will throw
NoSuchElementException on next(). The Extent instance can still be used
as a parameter of Query.setExtent, and to get an Iterator.
Parameters: it - an iterator obtained by the method iterator() on this Extent instance. |
closeAll | public synchronized void closeAll()(Code) | | Close all Iterators associated with this Extent instance. Iterators closed
by this method will return false to hasNext() and will throw
NoSuchElementException on next(). The Extent instance can still be used
as a parameter of Query.setExtent, and to get an Iterator.
|
getCandidateClass | public Class getCandidateClass()(Code) | | An Extent contains all instances of a particular Class in the data
store; this method returns the Class of the instances
the Class of instances of this Extent |
getFetchPlan | public FetchPlan getFetchPlan()(Code) | | |
getPersistenceManager | public PersistenceManager getPersistenceManager()(Code) | | An Extent is managed by a PersistenceManager; this method gives access
to the owning PersistenceManager.
the owning PersistenceManager |
hasSubclasses | public boolean hasSubclasses()(Code) | | Returns whether this Extent was defined to contain subclasses.
true if this Extent was defined to contain instancesthat are of a subclass type |
iterator | public synchronized Iterator iterator()(Code) | | Returns an iterator over all the instances in the Extent.
an iterator over all instances in the Extent |
setFetchPlan | public void setFetchPlan(FetchPlan fp)(Code) | | |
|
|