|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.extent.AbstractExtent
Abstract representation of an Extent for stores. Individual stores should extend this to implement Extent's for their purpose.
Field Summary | |
protected java.lang.Class |
candidateClass
The candidate class. |
protected AbstractClassMetaData |
cmd
ClassMetaData for the candidate class. |
protected static Localiser |
LOCALISER
Localised messages source |
protected PersistenceManager |
pm
Persistence Manager for the Extent. |
protected Query |
query
Query executed for returning the Extent. |
protected java.util.HashMap |
queryResultsByIterator
Map of the iterators of the Extents accessed. |
protected StoreManager |
storeMgr
Manager for the Store. |
protected boolean |
subclasses
Whether to include subclasses. |
Constructor Summary | |
AbstractExtent(PersistenceManager pm,
java.lang.Class cls,
boolean subclasses)
Constructor. |
Method Summary | |
void |
close(java.util.Iterator iter)
Close an Iterator associated with this Extent instance. |
void |
closeAll()
Close all Iterators associated with this Extent instance. |
java.lang.Class |
getCandidateClass()
Accessor for the class of instances in this Extent. |
javax.jdo.FetchPlan |
getFetchPlan()
This method retrieves the fetch plan associated with the Extent. |
javax.jdo.PersistenceManager |
getPersistenceManager()
Accessor for the owning PersistenceManager. |
boolean |
hasSubclasses()
Returns whether this Extent was defined to contain subclasses. |
java.util.Iterator |
iterator()
Returns an iterator over all the instances in the Extent. |
java.lang.String |
toString()
Stringifier method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final Localiser LOCALISER
protected final PersistenceManager pm
protected final java.lang.Class candidateClass
protected final boolean subclasses
protected final AbstractClassMetaData cmd
protected final StoreManager storeMgr
protected final Query query
protected java.util.HashMap queryResultsByIterator
Constructor Detail |
public AbstractExtent(PersistenceManager pm, java.lang.Class cls, boolean subclasses)
pm
- Persistence Managercls
- candidate classsubclasses
- Whether to include subclassesMethod Detail |
public boolean hasSubclasses()
hasSubclasses
in interface javax.jdo.Extent
public java.lang.Class getCandidateClass()
getCandidateClass
in interface javax.jdo.Extent
public javax.jdo.PersistenceManager getPersistenceManager()
getPersistenceManager
in interface javax.jdo.Extent
public java.util.Iterator iterator()
iterator
in interface javax.jdo.Extent
public void close(java.util.Iterator iter)
close
in interface javax.jdo.Extent
iter
- an iterator obtained by the method iterator() on this Extent
instance.public void closeAll()
closeAll
in interface javax.jdo.Extent
public javax.jdo.FetchPlan getFetchPlan()
getFetchPlan
in interface javax.jdo.Extent
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |