oracle.toplink.essentials.indirection |
|
Java Source File Name | Type | Comment |
IndirectContainer.java | Interface | Purpose:
Define an interface for a Container that can also act as a TopLink
"indirection" object; i.e. |
IndirectList.java | Class | 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 IndirectList (jdk1.1)
or Collection/List/Vector (jdk1.2).
- Send the message #useTransparentCollection() to the appropriate
CollectionMapping.
TopLink will place an
IndirectList in the instance variable when the containing domain object is read from
the datatabase. |
IndirectMap.java | Class | IndirectMap allows a domain class to take advantage of TopLink indirection
without having to declare its instance variable as a ValueHolderInterface.
To use an IndirectMap:
- Declare the appropriate instance variable with type Hashtable (jdk1.1)
or Map (jdk1.2).
- Send the message #useTransparentMap(String) to the appropriate
CollectionMapping.
TopLink will place an
IndirectMap in the instance variable when the containing domain object is read from
the datatabase. |
IndirectSet.java | Class | IndirectSet is an example implementation of the Set protocol that
allows a domain class to take advantage of TopLink Indirection
without having to declare its instance variable as a ValueHolderInterface.
To use an IndirectSet:
- Declare the appropriate instance variable with type Set (or Collection).
- Send the message #useTransparentCollection() to the appropriate
CollectionMapping.
- Send the message #useCollectionClass(IndirectSet.class) to the same
CollectionMapping.
|
ValueHolder.java | Class |
Purpose: Act as a place holder for a variable that required a value holder interface. |
ValueHolderInterface.java | Interface | Purpose: Interface to allow lazy loading of an object's relationships from the database. |
WeavedAttributeValueHolderInterface.java | Interface | INTERNAL:
This interface defines funtionality required by ValueHolders for OneToOneMappings that
have LAZY access weaved into them and use Property (method) based access
The weaving feature adds a paralell valueholder to the class it weaves and uses that valueholder
to control the lazy loading. |