Top Description Methods
org.eclipse.persistence.indirection

public Interface IndirectContainer<C>

Known Direct Subinterfaces
org.eclipse.persistence.indirection.IndirectCollection

Purpose:

Define an interface for a Container that can also act as an EclipseLink "indirection" object; i.e. the Container will only read its contents from the database when necessary (typically, on receipt of the first Container-related message).

Author
Big Country
Since
TOPLink/Java 2.5
See Also
org.eclipse.persistence.internal.indirection.TransparentIndirectionPolicy

Method Summary

Modifier and TypeMethod and Description
public ValueHolderInterface<C>

Returns:

org.eclipse.persistence.indirection.ValueHolderInterface A representation of the valueholder * which this container uses
getValueHolder
()

PUBLIC: This is used by the indirection policy to build the UOW clone of the container.

public boolean
isInstantiated()

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

public void
setValueHolder(ValueHolderInterface<C> valueHolder)

PUBLIC: Set the valueHolder.

Method Detail

getValueHolderback to summary
public ValueHolderInterface<C> getValueHolder()

PUBLIC: This is used by the indirection policy to build the UOW clone of the container.

Returns:ValueHolderInterface<C>

org.eclipse.persistence.indirection.ValueHolderInterface A representation of the valueholder * which this container uses

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.

setValueHolderback to summary
public void setValueHolder(ValueHolderInterface<C> valueHolder)

PUBLIC: Set the valueHolder. This is used by the indirection policy to build the UOW clone of the container.