EclipseLink 2.1.2, build 'v20101206-r8635' API Reference

org.eclipse.persistence.indirection
Interface ValueHolderInterface

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
WeavedAttributeValueHolderInterface
All Known Implementing Classes:
ValueHolder

public interface ValueHolderInterface
extends java.lang.Cloneable

Purpose: Interface to allow lazy loading of an object's relationships from the database.

See Also:
ValueHolder, DatabaseValueHolder

Field Summary
static boolean shouldToStringInstantiate
          Can be used to have transparent indirection toString instantiate the objects.
 
Method Summary
 java.lang.Object clone()
          PUBLIC: Copy the value holder (but not its' reference, shallow).
 java.lang.Object getValue()
          PUBLIC: Return the value.
 boolean isInstantiated()
          PUBLIC: Return whether the contents have been read from the database.
 void setValue(java.lang.Object value)
          PUBLIC: Set the value.
 

Field Detail

shouldToStringInstantiate

static final boolean shouldToStringInstantiate
Can be used to have transparent indirection toString instantiate the objects.

See Also:
Constant Field Values
Method Detail

clone

java.lang.Object clone()
PUBLIC: Copy the value holder (but not its' reference, shallow).


getValue

java.lang.Object getValue()
PUBLIC: Return the value.


isInstantiated

boolean isInstantiated()
PUBLIC: Return whether the contents have been read from the database. This is used periodically by the indirection policy to determine whether to trigger the database read.


setValue

void setValue(java.lang.Object value)
PUBLIC: Set the value.


EclipseLink 2.1.2, build 'v20101206-r8635' API Reference