Class ExtentImpl<T>

java.lang.Object
org.apache.openjpa.persistence.ExtentImpl<T>
All Implemented Interfaces:
Iterable<T>, Extent<T>

public class ExtentImpl<T> extends Object implements Extent<T>
An extent is a logical view of all instances of a class.
Since:
0.4.1
Author:
Abe White
  • Constructor Details

  • Method Details

    • getDelegate

      public Extent<T> getDelegate()
      Delegate.
      Specified by:
      getDelegate in interface Extent<T>
    • getElementClass

      public Class<T> getElementClass()
      Description copied from interface: Extent
      The extent's element type.
      Specified by:
      getElementClass in interface Extent<T>
    • hasSubclasses

      public boolean hasSubclasses()
      Description copied from interface: Extent
      Whether the extent includes subclasses.
      Specified by:
      hasSubclasses in interface Extent<T>
    • getEntityManager

      public OpenJPAEntityManager getEntityManager()
      Description copied from interface: Extent
      The owning entity manager.
      Specified by:
      getEntityManager in interface Extent<T>
    • getFetchPlan

      public FetchPlan getFetchPlan()
      Description copied from interface: Extent
      Fetch configuration for controlling how iterated objects are loaded.
      Specified by:
      getFetchPlan in interface Extent<T>
    • getIgnoreChanges

      public boolean getIgnoreChanges()
      Description copied from interface: Extent
      Whether the extent sees inserts and deletes in the current transaction.
      Specified by:
      getIgnoreChanges in interface Extent<T>
    • setIgnoreChanges

      public void setIgnoreChanges(boolean ignoreChanges)
      Description copied from interface: Extent
      Whether the extent sees inserts and deletes in the current transaction.
      Specified by:
      setIgnoreChanges in interface Extent<T>
    • list

      public List<T> list()
      Description copied from interface: Extent
      List the extent contents.
      Specified by:
      list in interface Extent<T>
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • closeAll

      public void closeAll()
      Description copied from interface: Extent
      Close all open iterators that are consuming database resources.
      Specified by:
      closeAll in interface Extent<T>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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