Kodo 4.0.0 generated on May 15 2006

kodo.persistence
Class Extent<T>

java.lang.Object
  extended by kodo.persistence.Extent<T>
All Implemented Interfaces:
Iterable

public class Extent<T>
extends Object
implements Iterable

An extent is a logical view of all instances of a class.


Constructor Summary
Extent(kodo.persistence.EntityManagerImpl em, kodo.kernel.Extent extent)
          Constructor; supply delegate.
 
Method Summary
 void closeAll()
          Close all open iterators that are consuming database resources.
 boolean equals(Object other)
           
 kodo.kernel.Extent getDelegate()
          Delegate.
 Class<T> getElementClass()
          The extent's element type.
 KodoEntityManager getEntityManager()
          The owning entity manager.
 FetchPlan getFetchPlan()
          Fetch configuration for controlling how iterated objects are loaded.
 boolean getIgnoreChanges()
          Whether the extent sees inserts and deletes in the current transaction.
 int hashCode()
           
 boolean hasSubclasses()
          Whether the extent includes subclasses.
 Iterator<T> iterator()
          Iterator over contents.
 List<T> list()
          List the extent contents.
 void setIgnoreChanges(boolean ignoreChanges)
          Whether the extent sees inserts and deletes in the current transaction.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Extent

public Extent(kodo.persistence.EntityManagerImpl em,
              kodo.kernel.Extent extent)
Constructor; supply delegate.

Method Detail

getDelegate

public kodo.kernel.Extent getDelegate()
Delegate.


getElementClass

public Class<T> getElementClass()
The extent's element type.


hasSubclasses

public boolean hasSubclasses()
Whether the extent includes subclasses.


getEntityManager

public KodoEntityManager getEntityManager()
The owning entity manager.


getFetchPlan

public FetchPlan getFetchPlan()
Fetch configuration for controlling how iterated objects are loaded.


getIgnoreChanges

public boolean getIgnoreChanges()
Whether the extent sees inserts and deletes in the current transaction.


setIgnoreChanges

public void setIgnoreChanges(boolean ignoreChanges)
Whether the extent sees inserts and deletes in the current transaction.


list

public List<T> list()
List the extent contents.


iterator

public Iterator<T> iterator()
Iterator over contents.

Specified by:
iterator in interface Iterable

closeAll

public void closeAll()
Close all open iterators that are consuming database resources.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

Kodo 4.0.0 generated on May 15 2006

Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.