com.orientechnologies.jdo
Class oExtent

java.lang.Object
  extended bycom.orientechnologies.jdo.oExtent
All Implemented Interfaces:
Extent

public class oExtent
extends java.lang.Object
implements Extent


Constructor Summary
oExtent()
           
 
Method Summary
 void close(java.util.Iterator p0)
          Close an Iterator associated with this Extent instance.
 void closeAll()
          Close all Iterators associated with this Extent instance.
 java.lang.Class getCandidateClass()
          An Extent contains all instances of a particular class in the data store; this method returns the Class of the instances.
 PersistenceManager getPersistenceManager()
          An Extent is managed by a PersistenceManager; this method gives access to the owning PersistenceManager.
 boolean hasSubclasses()
          Returns whether this Extent was defined to contain subclasses.
 java.util.Iterator iterator()
          Returns an iterator over all the instances in the Extent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

oExtent

public oExtent()
Method Detail

iterator

public java.util.Iterator iterator()
Description copied from interface: Extent
Returns an iterator over all the instances in the Extent. The behavior of the returned iterator might depend on the setting of the ignoreCache flag in the owning PersistenceManager.

Specified by:
iterator in interface Extent
Returns:
an iterator over all instances in the Extent

hasSubclasses

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

Specified by:
hasSubclasses in interface Extent
Returns:
true if this Extent was defined to contain instances that are of a subclass type.

getCandidateClass

public java.lang.Class getCandidateClass()
Description copied from interface: Extent
An Extent contains all instances of a particular class in the data store; this method returns the Class of the instances.

Specified by:
getCandidateClass in interface Extent
Returns:
the Class of instances of this Extent.

getPersistenceManager

public PersistenceManager getPersistenceManager()
Description copied from interface: Extent
An Extent is managed by a PersistenceManager; this method gives access to the owning PersistenceManager.

Specified by:
getPersistenceManager in interface Extent
Returns:
the owning PersistenceManager

closeAll

public void closeAll()
Description copied from interface: Extent
Close all Iterators associated with this Extent instance. Iterators closed by this method will return false to hasNext() and will throw NoSuchElementException on next(). The Extent instance can still be used as a parameter of Query.setExtent, and to get an Iterator.

Specified by:
closeAll in interface Extent

close

public void close(java.util.Iterator p0)
Description copied from interface: Extent
Close an Iterator associated with this Extent instance. Iterators closed by this method will return false to hasNext() and will throw NoSuchElementException on next(). The Extent instance can still be used as a parameter of Query.setExtent, and to get an Iterator.

Specified by:
close in interface Extent
Parameters:
p0 - an Iterator obtained by the method iterator() on this Extent instance.