Working with Transparent Indirection

Transparent indirection allows you to declare any relationship attribute of a persistent class that holds a collection of related objects as a java.util.Collection, java.util.Map, java.util.Vector, or java.util.Hastable. 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.

You can specify transparent indirection from the TopLink Mapping editor. Newly created collection mappings use transparent indirection by default if their attribute is not a ValueHolderInterface.


Related Topics

Working with Indirection
Understanding Indirection

Specifying Transparent Indirection

 

Copyright © 1997, 2004, Oracle. All rights reserved.