org.apache.jdo.impl.fostore
Class FOStoreExtent

java.lang.Object
  extended byorg.apache.jdo.impl.fostore.FOStoreExtent
All Implemented Interfaces:
javax.jdo.Extent

class FOStoreExtent
extends java.lang.Object
implements javax.jdo.Extent

This is an in-memory extent.


Nested Class Summary
(package private)  class FOStoreExtent.FOStoreExtentIterator
          Iterates over the elements in a FOStoreExtent.
 
Field Summary
private  java.lang.Class cls
          Class specified by user.
private  FOStoreConnector connector
           
private  java.util.HashSet iterators
          Iterators requested by user.
(package private) static org.apache.commons.logging.Log logger
          Logger
private static org.apache.jdo.util.I18NHelper msg
          I18N support.
private  org.apache.jdo.pm.PersistenceManagerInternal pm
          Persistence manager on which getExtent was invoked by user.
private  RequestFactory rf
           
private  boolean subclasses
          If true, extent includes subclasses of user's class.
 
Constructor Summary
(package private) FOStoreExtent(java.lang.Class cls, boolean subclasses, org.apache.jdo.pm.PersistenceManagerInternal pm, RequestFactory rf, FOStoreConnector connector)
           
 
Method Summary
 void close(java.util.Iterator it)
           
 void closeAll()
           
 java.lang.Class getCandidateClass()
           
 javax.jdo.FetchPlan getFetchPlan()
          Get the fetch plan associated with this Extent.
 javax.jdo.PersistenceManager getPersistenceManager()
           
 boolean hasSubclasses()
           
 java.util.Iterator iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connector

private final FOStoreConnector connector

rf

private final RequestFactory rf

iterators

private final java.util.HashSet iterators
Iterators requested by user.


cls

private final java.lang.Class cls
Class specified by user.


subclasses

private final boolean subclasses
If true, extent includes subclasses of user's class.


pm

private final org.apache.jdo.pm.PersistenceManagerInternal pm
Persistence manager on which getExtent was invoked by user.


msg

private static final org.apache.jdo.util.I18NHelper msg
I18N support.


logger

static final org.apache.commons.logging.Log logger
Logger

Constructor Detail

FOStoreExtent

FOStoreExtent(java.lang.Class cls,
              boolean subclasses,
              org.apache.jdo.pm.PersistenceManagerInternal pm,
              RequestFactory rf,
              FOStoreConnector connector)
Method Detail

iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface javax.jdo.Extent
See Also:
Extent.iterator()

hasSubclasses

public boolean hasSubclasses()
Specified by:
hasSubclasses in interface javax.jdo.Extent
See Also:
Extent.hasSubclasses()

getCandidateClass

public java.lang.Class getCandidateClass()
Specified by:
getCandidateClass in interface javax.jdo.Extent
See Also:
Extent.getCandidateClass()

getPersistenceManager

public javax.jdo.PersistenceManager getPersistenceManager()
Specified by:
getPersistenceManager in interface javax.jdo.Extent
See Also:
Extent.getPersistenceManager()

closeAll

public void closeAll()
Specified by:
closeAll in interface javax.jdo.Extent
See Also:
Extent.closeAll()

close

public void close(java.util.Iterator it)
Specified by:
close in interface javax.jdo.Extent
See Also:
Extent.close(java.util.Iterator)

getFetchPlan

public javax.jdo.FetchPlan getFetchPlan()
Get the fetch plan associated with this Extent.

Specified by:
getFetchPlan in interface javax.jdo.Extent
Returns:
the fetch plan
Since:
2.0