SolarMetric Kodo JDO 3.3.5 generated on August 31 2005

kodo.runtime
Class ExtentImpl

java.lang.Object
  |
  +--kodo.runtime.ExtentImpl
All Implemented Interfaces:
Extent, KodoExtent
Direct Known Subclasses:
XMLStoreManager.XMLExtent

public abstract class ExtentImpl
extends Object
implements KodoExtent

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

ExtentImpl

public ExtentImpl(KodoPersistenceManager pm,
                  Class type,
                  boolean subs)
Constructor.
Parameters:
pm - the owning persistence manager
type - the candidate class
subs - whether subclasses are included in the extent
Method Detail

getFetchConfiguration

public FetchConfiguration getFetchConfiguration()
Description copied from interface: KodoExtent
Return the (mutable) fetch configuration for this extent.
Specified by:
getFetchConfiguration in interface KodoExtent

getIgnoreCache

public boolean getIgnoreCache()
Description copied from interface: KodoExtent
Whether this extent will ignore the persistence manager cache.
Specified by:
getIgnoreCache in interface KodoExtent

setIgnoreCache

public void setIgnoreCache(boolean ignoreCache)
Description copied from interface: KodoExtent
Whether this extent will ignore the persistence manager cache.
Specified by:
setIgnoreCache in interface KodoExtent

list

public List list()
Description copied from interface: KodoExtent
Returns a list of all objects represented by this extent. This method creates a 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.
Specified by:
list in interface KodoExtent

iterator

public Iterator iterator()
Specified by:
iterator in interface Extent

getPersistenceManager

public PersistenceManager getPersistenceManager()
Specified by:
getPersistenceManager in interface Extent

getCandidateClass

public Class getCandidateClass()
Specified by:
getCandidateClass in interface Extent

hasSubclasses

public boolean hasSubclasses()
Specified by:
hasSubclasses in interface Extent

closeAll

public void closeAll()
Specified by:
closeAll in interface Extent

close

public void close(Iterator itr)
Specified by:
close in interface Extent

getResultObjectProvider

protected abstract ResultObjectProvider getResultObjectProvider(ClassMetaData meta)
Return a result object provider for the given type.

SolarMetric Kodo JDO 3.3.5 generated on August 31 2005

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.