Class IndirectList<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
org.eclipse.persistence.indirection.IndirectList<E>
Type Parameters:
E - the type of elements maintained by this list
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess, ChangeTracker, CollectionChangeTracker, IndirectCollection<E,List<E>>, IndirectContainer<List<E>>

public class IndirectList<E> extends Vector<E> implements CollectionChangeTracker, IndirectCollection<E,List<E>>
IndirectList allows a domain class to take advantage of TopLink indirection without having to declare its instance variable as a ValueHolderInterface.

To use an IndirectList:

  • Declare the appropriate instance variable with type Collection/List/Vector (jdk1.2).
  • Send the message #useTransparentCollection() to the appropriate CollectionMapping.
EclipseLink will place an IndirectList in the instance variable when the containing domain object is read from the database. With the first message sent to the IndirectList, the contents are fetched from the database and normal Collection/List/Vector behavior is resumed.
See Also:
Author:
Big Country