Skip Headers

# Transparent Indirect Container Indirection

Previous

Next

Transparent indirect container (see "Configuring Container Policy") indirection lets you declare any relationship attribute of a persistent class that holds a collection of related objects as any of the following:

- `java.util.Collection`

- `java.util.Hastable`

- `java.util.List`

- `java.util.Map`

- `java.util.Set`

- `java.util.Vector`

TopLink will use an indirection object that implements the appropriate interface and also performs just-in-time reading of the related objects. When using transparent indirection, you do not have to declare the attributes as `ValueHolderInterface`.

Newly created collection mappings use transparent indirection by default if their attribute is not a `ValueHolderInterface`.

See Also

  Configuring Indirection
  Value Holder Indirection