org.datanucleus.jdo
Class JDOExtent

java.lang.Object
  extended by org.datanucleus.jdo.JDOExtent
All Implemented Interfaces:
java.lang.Iterable, javax.jdo.Extent

public class JDOExtent
extends java.lang.Object
implements javax.jdo.Extent

Wrapper implementation of a JDO Extent.


Constructor Summary
JDOExtent(javax.jdo.PersistenceManager pm, Extent extent)
          Constructor.
 
Method Summary
 void close(java.util.Iterator iterator)
          Method to close the Extent iterator.
 void closeAll()
          Method to close all Extent iterators.
 java.lang.Class getCandidateClass()
          Accessor for the candidate class of the Extent.
 Extent getExtent()
          Accessor for the real extent.
 javax.jdo.FetchPlan getFetchPlan()
          Accessor for the FetchPlan for the Extent.
 javax.jdo.PersistenceManager getPersistenceManager()
          Accessor for the PersistenceManager.
 boolean hasSubclasses()
          Accessor for whether the Extent includes subclasses.
 java.util.Iterator iterator()
          Accessor for an iterator for this Extent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOExtent

public JDOExtent(javax.jdo.PersistenceManager pm,
                 Extent extent)
Constructor.

Parameters:
pm - PersistenceManager
extent - Underlying Extent
Method Detail

close

public void close(java.util.Iterator iterator)
Method to close the Extent iterator.

Specified by:
close in interface javax.jdo.Extent
Parameters:
iterator - Iterator for the extent.

closeAll

public void closeAll()
Method to close all Extent iterators.

Specified by:
closeAll in interface javax.jdo.Extent

getCandidateClass

public java.lang.Class getCandidateClass()
Accessor for the candidate class of the Extent.

Specified by:
getCandidateClass in interface javax.jdo.Extent
Returns:
Candidate class

hasSubclasses

public boolean hasSubclasses()
Accessor for whether the Extent includes subclasses.

Specified by:
hasSubclasses in interface javax.jdo.Extent
Returns:
Whether it has subclasses

getFetchPlan

public javax.jdo.FetchPlan getFetchPlan()
Accessor for the FetchPlan for the Extent.

Specified by:
getFetchPlan in interface javax.jdo.Extent
Returns:
FetchPlan

getPersistenceManager

public javax.jdo.PersistenceManager getPersistenceManager()
Accessor for the PersistenceManager.

Specified by:
getPersistenceManager in interface javax.jdo.Extent
Returns:
The PM

getExtent

public Extent getExtent()
Accessor for the real extent.

Returns:
The Underlying extent

iterator

public java.util.Iterator iterator()
Accessor for an iterator for this Extent.

Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface javax.jdo.Extent
Returns:
The iterator


Copyright © 2010. All Rights Reserved.