|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.runtime.ExtentImpl
Abstract Extent
implementation that takes care of everything
but creating and closing iterators.
Constructor Summary | |
ExtentImpl(KodoPersistenceManager pm,
Class type,
boolean subs)
Constructor. |
Method Summary | |
void |
close(Iterator itr)
|
void |
closeAll()
|
Class |
getCandidateClass()
|
FetchConfiguration |
getFetchConfiguration()
Return the (mutable) fetch configuration for this extent. |
boolean |
getIgnoreCache()
Whether this extent will ignore the persistence manager cache. |
PersistenceManager |
getPersistenceManager()
|
protected abstract ResultObjectProvider |
getResultObjectProvider(ClassMetaData meta)
Return a result object provider for the given type. |
boolean |
hasSubclasses()
|
Iterator |
iterator()
|
List |
list()
Returns a list of all objects represented by this extent. |
void |
setIgnoreCache(boolean ignoreCache)
Whether this extent will ignore the persistence manager cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtentImpl(KodoPersistenceManager pm, Class type, boolean subs)
pm
- the owning persistence managertype
- the candidate classsubs
- whether subclasses are included in the extentMethod Detail |
public FetchConfiguration getFetchConfiguration()
KodoExtent
getFetchConfiguration
in interface KodoExtent
public boolean getIgnoreCache()
KodoExtent
getIgnoreCache
in interface KodoExtent
public void setIgnoreCache(boolean ignoreCache)
KodoExtent
setIgnoreCache
in interface KodoExtent
public List list()
KodoExtent
List
by traversing the entire iterator returned by a
call to Extent.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 Iterator iterator()
iterator
in interface Extent
public PersistenceManager getPersistenceManager()
getPersistenceManager
in interface Extent
public Class getCandidateClass()
getCandidateClass
in interface Extent
public boolean hasSubclasses()
hasSubclasses
in interface Extent
public void closeAll()
closeAll
in interface Extent
public void close(Iterator itr)
close
in interface Extent
protected abstract ResultObjectProvider getResultObjectProvider(ClassMetaData meta)
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |