Class ProxyIndirectionPolicy

All Implemented Interfaces:
Serializable, Cloneable

public class ProxyIndirectionPolicy extends BasicIndirectionPolicy

ProxyIndirectionPolicy

Define the behavior for Proxy Indirection.

Proxy Indirection uses the Proxy and InvocationHandler features of JDK 1.3 to provide "transparent indirection" for 1:1 relationships. In order to use Proxy Indirection:

  • The target class must implement at least one public interface
  • The attribute on the source class must be typed as that public interface
In this policy, proxy objects are returned during object creation. When a message other than toString is called on the proxy the real object data is retrieved from the database.
Since:
TopLink 3.0
See Also: