Interface Extent<T>

  • All Known Implementing Classes:
    DelegatingExtent, ExtentImpl

    public interface Extent<T>
    Representation of all members of a persistent class.
    Author:
    Abe White, Patrick Linskey
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void closeAll()
      Close all open iterators.
      Broker getBroker()
      The broker that generated the extent.
      java.lang.Class<T> getElementType()
      The class of extent elements.
      FetchConfiguration getFetchConfiguration()
      Return the (mutable) fetch configuration for this extent.
      boolean getIgnoreChanges()
      Whether this extent will ignore changes made in the current transaction.
      boolean hasSubclasses()
      Whether the extent includes subclasses.
      java.util.Iterator<T> iterator()
      Return an iterator over the extent members.
      java.util.List<T> list()
      Returns a list of all objects represented by this extent.
      void lock()
      Synchronizes on an internal lock.
      void setIgnoreChanges​(boolean ignoreChanges)
      Whether this extent will ignore changes made in the current transaction.
      void unlock()
      Release the internal lock.
    • Method Detail

      • getFetchConfiguration

        FetchConfiguration getFetchConfiguration()
        Return the (mutable) fetch configuration for this extent.
      • getIgnoreChanges

        boolean getIgnoreChanges()
        Whether this extent will ignore changes made in the current transaction.
      • setIgnoreChanges

        void setIgnoreChanges​(boolean ignoreChanges)
        Whether this extent will ignore changes made in the current transaction.
      • list

        java.util.List<T> list()
        Returns a list of all objects represented by this extent. This method creates a List by traversing the entire iterator returned by a call to iterator(). This means that Collection.size() will work correctly, but if the extent represents a large data set, this method may be quite slow and may consume quite a bit of memory.
      • iterator

        java.util.Iterator<T> iterator()
        Return an iterator over the extent members.
      • getBroker

        Broker getBroker()
        The broker that generated the extent.
      • getElementType

        java.lang.Class<T> getElementType()
        The class of extent elements.
      • hasSubclasses

        boolean hasSubclasses()
        Whether the extent includes subclasses.
      • closeAll

        void closeAll()
        Close all open iterators.
      • lock

        void lock()
        Synchronizes on an internal lock.
      • unlock

        void unlock()
        Release the internal lock.