|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.kodo.runtime.ExtentImpl
Abstract Extent implementation that takes care of everything
but creating and closing iterators.
| Constructor Summary | |
|---|---|
ExtentImpl(PersistenceManager pm,
Class type,
boolean subs)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close(Iterator iter)
|
void |
closeAll()
|
protected void |
closeIterator(Iterator iter)
Close the given iterator. |
Class |
getCandidateClass()
|
protected abstract Iterator |
getIterator()
Return an iterator over this extent. |
PersistenceManager |
getPersistenceManager()
|
boolean |
hasSubclasses()
|
static boolean |
includesClass(Extent extent,
Class cls)
API extension. |
Iterator |
iterator()
|
List |
list()
API extension. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExtentImpl(PersistenceManager pm,
Class type,
boolean subs)
pm - the owning persistence managertype - the candidate classsubs - whether subclasses are included in the extent| Method Detail |
public List list()
List by traversing the
entire iterator returned by a call to iterator(). This
means that Collection.size() will work correctly, but if
the extent represents a large data set, this method may be
quite slow and may consume quite a bit of memory.
public static boolean includesClass(Extent extent,
Class cls)
Returns true if instances of cls
could be in extent, taking the return value of
hasSubclasses() into consideration.
This is static so that it can be invoked on any extent, not
just ExtentImpl objects.
public Iterator iterator()
iterator in interface Extentpublic PersistenceManager getPersistenceManager()
getPersistenceManager in interface Extentpublic Class getCandidateClass()
getCandidateClass in interface Extentpublic boolean hasSubclasses()
hasSubclasses in interface Extentpublic void closeAll()
closeAll in interface Extentpublic void close(Iterator iter)
close in interface Extentprotected abstract Iterator getIterator()
protected void closeIterator(Iterator iter)
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||