Top Description Fields Methods
org.eclipse.persistence.indirection

public Interface ValueHolderInterface<T>

extends Cloneable
Known Direct Subinterfaces
org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface

Purpose: Interface to allow lazy loading of an object's relationships from the database.
See Also
ValueHolder, org.eclipse.persistence.internal.indirection.DatabaseValueHolder

Field Summary

Modifier and TypeField and Description
public static final boolean
shouldToStringInstantiate

Can be used to have transparent indirection toString instantiate the objects.

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

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

public T
getValue()

PUBLIC: Return the value.

public boolean
isInstantiated()

PUBLIC: Return whether the contents have been read from the database.

public void
setValue(T value)

PUBLIC: Set the value.

Field Detail

shouldToStringInstantiateback to summary
public static final boolean shouldToStringInstantiate

Can be used to have transparent indirection toString instantiate the objects.

Method Detail

cloneback to summary
public Object clone()

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

getValueback to summary
public T getValue()

PUBLIC: Return the value.

isInstantiatedback to summary
public 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.

setValueback to summary
public void setValue(T value)

PUBLIC: Set the value.