public interface VersionConsistencyCache
| Modifier and Type | Method and Description |
|---|---|
void |
addPCType(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. |
StateManager |
get(Class pcType,
Object oid)
Returns an SM, if found, else null.
|
StateManager |
put(Class pcType,
Object oid,
StateManager sm)
Puts the given StateManager into a map that is keyed by the given OID.
|
StateManager |
remove(Class pcType,
Object oid)
Removes entry based on pc and oid.
|
void |
removePCType(Class pcType)
Removes the map for the given pcType and all its elements.
|
StateManager put(Class pcType, Object oid, StateManager sm)
pcType - class of instance, used as key in outer map.oid - Object id, used as key in inner map.sm - StateManager bound to oid in inner map.StateManager get(Class pcType, Object oid)
pcType - class of instance, used as key in outer map.oid - Object id, used as key in inner map.StateManager remove(Class pcType, Object oid)
pcType - class of instance, used as key in outer map.oid - Object id, used as key in inner map.void addPCType(Class pcType)
putEntry operations.pcType - class of instance, used as key in outer map.void removePCType(Class pcType)
pcType - class of instance, used as key in outer map.Copyright © 2017. All rights reserved.