Class ExtentImpl<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>, Extent<T>

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void closeAll()
      Close all open iterators that are consuming database resources.
      boolean equals​(java.lang.Object other)  
      Extent<T> getDelegate()
      Delegate.
      java.lang.Class<T> getElementClass()
      The extent's element type.
      OpenJPAEntityManager 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.
      java.util.Iterator<T> iterator()  
      java.util.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
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • getElementClass

        public java.lang.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>
      • 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 java.util.List<T> list()
        Description copied from interface: Extent
        List the extent contents.
        Specified by:
        list in interface Extent<T>
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object