FileDocCategorySizeDatePackage
VersionConsistencyCache.javaAPI DocGlassfish v2 API3795Fri May 04 22:34:58 BST 2007com.sun.jdo.spi.persistence.support.sqlstore

VersionConsistencyCache

public interface VersionConsistencyCache
A cache of "version consistent" StateManager instances. These instances are used so that we can avoid loading state from the database.
author
Dave Bristor

Fields Summary
Constructors Summary
Methods Summary
public voidaddPCType(java.lang.Class pcType)
Informs the cache to expect that the given pcType will be used as a key for the outer map in subsequent putEntry operations.

param
pcType class of instance, used as key in outer map.

public StateManagerget(java.lang.Class pcType, java.lang.Object oid)
Returns an SM, if found, else null.

param
pcType class of instance, used as key in outer map.
param
oid Object id, used as key in inner map.

public StateManagerput(java.lang.Class pcType, java.lang.Object oid, StateManager sm)
Puts the given StateManager into a map that is keyed by the given OID. We anticipate that implementations will want to use a two-level map, and so the pc's class can be used as a key into a map to access a second map, which would be that keyed by OID.

param
pcType class of instance, used as key in outer map.
param
oid Object id, used as key in inner map.
param
sm StateManager bound to oid in inner map.

public StateManagerremove(java.lang.Class pcType, java.lang.Object oid)
Removes entry based on pc and oid. If map is empty after remove, removes it from its containint map.

param
pcType class of instance, used as key in outer map.
param
oid Object id, used as key in inner map.

public voidremovePCType(java.lang.Class pcType)
Removes the map for the given pcType and all its elements.

param
pcType class of instance, used as key in outer map.