Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.indirection
Interface IndirectContainer

All Known Subinterfaces:
IndirectCollection
All Known Implementing Classes:
IndirectList, IndirectMap, IndirectSet

public interface IndirectContainer

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).

Since:
TOPLink/Java 2.5
Author:
Big Country
See Also:
TransparentIndirectionPolicy

Method Summary
 ValueHolderInterface getValueHolder()
          PUBLIC: This is used by the indirection policy to build the UOW clone of the container.
 boolean isInstantiated()
          PUBLIC: Return whether the contents have been read from the database.
 void setValueHolder(ValueHolderInterface valueHolder)
          PUBLIC: Set the valueHolder.

 

Method Detail

getValueHolder

ValueHolderInterface getValueHolder()
PUBLIC: This is used by the indirection policy to build the UOW clone of the container.
Returns:
org.eclipse.persistence.indirection.ValueHolderInterface A representation of the valueholder * which this container uses

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.

setValueHolder

void setValueHolder(ValueHolderInterface valueHolder)
PUBLIC: Set the valueHolder. This is used by the indirection policy to build the UOW clone of the container.

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.