|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| 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()
|
Class[] |
getImplementingClasses()
Returns an array of top-level implementing classes. |
Class[] |
getImplementingClasses(boolean withMetadata)
Returns an array of top-level implementing classes. |
static Class[] |
getImplementingClasses(Class forClass,
boolean includeSubclasses,
boolean withMetadata)
Returns an array of top-level implementing classes for the specified candidate class. |
protected Iterator |
getIterator()
|
protected abstract Iterator |
getIterator(Class candidateClass)
Return an iterator over the extent for the specified candidate class. |
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 |
|
| 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.list in interface KodoExtent
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 Extentpublic Class[] getImplementingClasses()
getImplementingClasses in interface KodoExtentpublic Class[] getImplementingClasses(boolean withMetadata)
getImplementingClasses in interface KodoExtentwithMetadata - if true, exclude those implementors that do
no have metadata.
public static Class[] getImplementingClasses(Class forClass,
boolean includeSubclasses,
boolean withMetadata)
protected Iterator getIterator()
protected abstract Iterator getIterator(Class candidateClass)
candidateClass - the class against which the Iterator needs
to be obtained. It is important that this parameter be used
as opposed to the getCandidateClass() method, since the
parameter is always guaranteed to be a concrete class,
whereas getCandidateClass() may return an interface.protected void closeIterator(Iterator iter)
iter - the Iterator to close. This can be an instance of
the implementation-dependent Iterator,
or it may be a MultiIterator.
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||