Interface IndirectCollection<E,C>

All Superinterfaces:
IndirectContainer<C>
All Known Implementing Classes:
IndirectList, IndirectMap, IndirectSet

public interface IndirectCollection<E,C> extends IndirectContainer<C>
Purpose: Common interface to indirect collections.

Author:
James Sutherland
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    INTERNAL: clear any changes that have been deferred to instantiation.
    INTERNAL: Return if the collection has any elements added that have been deferred to instantiation.
    INTERNAL: Return the real collection object.
    INTERNAL: Return if the collection has any elements removed that have been deferred to instantiation.
    boolean
    INTERNAL: Return if the collection has any changes that have been deferred to instantiation.
    void
    setUseLazyInstantiation(boolean useLazyInstantiation)
    INTERNAL Set whether this collection should attempt do deal with adds and removes without retrieving the collection from the dB

    Methods inherited from interface org.eclipse.persistence.indirection.IndirectContainer

    getValueHolder, isInstantiated, setValueHolder
  • Method Details

    • clearDeferredChanges

      void clearDeferredChanges()
      INTERNAL: clear any changes that have been deferred to instantiation. Indirect collections with change tracking avoid instantiation on add/remove.
    • hasDeferredChanges

      boolean hasDeferredChanges()
      INTERNAL: Return if the collection has any changes that have been deferred to instantiation. Indirect collections with change tracking avoid instantiation on add/remove.
    • getAddedElements

      Collection<E> getAddedElements()
      INTERNAL: Return if the collection has any elements added that have been deferred to instantiation. Indirect collections with change tracking avoid instantiation on add/remove.
    • getRemovedElements

      Collection<E> getRemovedElements()
      INTERNAL: Return if the collection has any elements removed that have been deferred to instantiation. Indirect collections with change tracking avoid instantiation on add/remove.
    • getDelegateObject

      C getDelegateObject()
      INTERNAL: Return the real collection object. This will force instantiation.
    • setUseLazyInstantiation

      void setUseLazyInstantiation(boolean useLazyInstantiation)
      INTERNAL Set whether this collection should attempt do deal with adds and removes without retrieving the collection from the dB