|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.cache.InternalCache
A wrapper class for ObjectCache
implementation. This class is used as a
workaround for a concurrency materialization problem with shared cache implementations.
To avoid passing of partial materialized objects to cache this class act as a
temporary storage for unmaterialized (read) objects.
TODO: Will be replaced on cache refactoring
Constructor Summary | |
InternalCache(ObjectCache realCache)
|
Method Summary | |
void |
cache(Identity oid,
java.lang.Object obj)
makes object obj persistent to the Objectcache under the key oid. |
void |
clear()
clear the ObjectCache. |
void |
disableMaterializationCache()
|
void |
enableMaterializationCache()
|
void |
localClear()
|
java.lang.Object |
lookup(Identity oid)
Lookup object with Identity oid in objectTable. |
void |
remove(Identity oid)
removes an Object from the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InternalCache(ObjectCache realCache)
Method Detail |
public void enableMaterializationCache()
public void disableMaterializationCache()
public void cache(Identity oid, java.lang.Object obj)
ObjectCache
cache
in interface ObjectCache
public java.lang.Object lookup(Identity oid)
ObjectCache
lookup
in interface ObjectCache
public void remove(Identity oid)
ObjectCache
remove
in interface ObjectCache
oid
- Identity of the object to be removed.public void localClear()
public void clear()
ObjectCache
clear
in interface ObjectCache
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |