Top Description Methods
org.eclipse.persistence.indirection

public Interface IndirectCollection<E, C>

extends IndirectContainer<C>
Known Direct Implementers
org.eclipse.persistence.indirection.IndirectList, org.eclipse.persistence.indirection.IndirectMap, org.eclipse.persistence.indirection.IndirectSet
Imports
java.util.Collection

Purpose:

Common interface to indirect collections.

Author
James Sutherland
Since
TopLink 10.1.3

Method Summary

Modifier and TypeMethod and Description
public void
clearDeferredChanges()

INTERNAL: clear any changes that have been deferred to instantiation.

public Collection<E>
getAddedElements()

INTERNAL: Return if the collection has any elements added that have been deferred to instantiation.

public C
getDelegateObject()

INTERNAL: Return the real collection object.

public Collection<E>
getRemovedElements()

INTERNAL: Return if the collection has any elements removed that have been deferred to instantiation.

public boolean
hasDeferredChanges()

INTERNAL: Return if the collection has any changes that have been deferred to instantiation.

public void
setUseLazyInstantiation(boolean useLazyInstantiation)

INTERNAL Set whether this collection should attempt do deal with adds and removes without retrieving the collection from the dB

Inherited from org.eclipse.persistence.indirection.IndirectContainer:
getValueHolderisInstantiatedsetValueHolder

Method Detail

clearDeferredChangesback to summary
public void clearDeferredChanges()

INTERNAL: clear any changes that have been deferred to instantiation. Indirect collections with change tracking avoid instantiation on add/remove.

getAddedElementsback to summary
public 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.

getDelegateObjectback to summary
public C getDelegateObject()

INTERNAL: Return the real collection object. This will force instantiation.

getRemovedElementsback to summary
public 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.

hasDeferredChangesback to summary
public 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.

setUseLazyInstantiationback to summary
public void setUseLazyInstantiation(boolean useLazyInstantiation)

INTERNAL Set whether this collection should attempt do deal with adds and removes without retrieving the collection from the dB