VersionConsistencyCachepublic interface VersionConsistencyCache A cache of "version consistent" StateManager instances. These instances
are used so that we can avoid loading state from the database. |
Methods Summary |
---|
public void | addPCType(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.
| public StateManager | get(java.lang.Class pcType, java.lang.Object oid)Returns an SM, if found, else null.
| public StateManager | put(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.
| public StateManager | remove(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.
| public void | removePCType(java.lang.Class pcType)Removes the map for the given pcType and all its elements.
|
|