org.datanucleus.store
Class DefaultCandidateExtent

java.lang.Object
  extended by org.datanucleus.store.AbstractExtent
      extended by org.datanucleus.store.DefaultCandidateExtent
All Implemented Interfaces:
Extent

public class DefaultCandidateExtent
extends AbstractExtent

Extent that does a simple JDOQL query for the candidate with/without subclasses.


Field Summary
 
Fields inherited from class org.datanucleus.store.AbstractExtent
candidateClass, cmd, LOCALISER, om, storeMgr, subclasses
 
Constructor Summary
DefaultCandidateExtent(ObjectManager om, java.lang.Class cls, boolean subclasses, AbstractClassMetaData cmd)
          Constructor.
 
Method Summary
 void close(java.util.Iterator iterator)
           
 void closeAll()
           
 FetchPlan getFetchPlan()
           
 ObjectManager getObjectManager()
          Accessor for the owning PersistenceManager.
 boolean hasSubclasses()
          Returns whether this Extent was defined to contain subclasses.
 java.util.Iterator iterator()
           
 
Methods inherited from class org.datanucleus.store.AbstractExtent
getCandidateClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultCandidateExtent

public DefaultCandidateExtent(ObjectManager om,
                              java.lang.Class cls,
                              boolean subclasses,
                              AbstractClassMetaData cmd)
Constructor.

Parameters:
om - Object Manager
cls - candidate class
subclasses - Whether to include subclasses
cmd - MetaData for the candidate class
Method Detail

iterator

public java.util.Iterator iterator()

hasSubclasses

public boolean hasSubclasses()
Description copied from class: AbstractExtent
Returns whether this Extent was defined to contain subclasses.

Specified by:
hasSubclasses in interface Extent
Overrides:
hasSubclasses in class AbstractExtent
Returns:
true if this Extent was defined to include subclasses.

getObjectManager

public ObjectManager getObjectManager()
Description copied from class: AbstractExtent
Accessor for the owning PersistenceManager.

Specified by:
getObjectManager in interface Extent
Overrides:
getObjectManager in class AbstractExtent
Returns:
the owning PersistenceManager

getFetchPlan

public FetchPlan getFetchPlan()

closeAll

public void closeAll()

close

public void close(java.util.Iterator iterator)


Copyright © 2009. All Rights Reserved.