|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.cache.ObjectCacheEmptyImpl
This is an 'empty' ObjectCache implementation.
Useful when caching was not desired.
NOTE: This implementation does not prevent infinite loops caused by
'circular references' of loaded object graphs.
(this will change in versions > 1.0).
Implementation configuration properties:
Property Key | Property Values |
- | - |
Constructor Summary | |
ObjectCacheEmptyImpl(PersistenceBroker broker,
java.util.Properties prop)
|
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. |
java.lang.Object |
lookup(Identity oid)
Lookup object with Identity oid in objectTable. |
void |
remove(Identity oid)
removes an Object from the cache. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectCacheEmptyImpl(PersistenceBroker broker, java.util.Properties prop)
Method Detail |
public void cache(Identity oid, java.lang.Object obj)
ObjectCache
cache
in interface ObjectCache
ObjectCache.cache(Identity, Object)
public java.lang.Object lookup(Identity oid)
ObjectCache
lookup
in interface ObjectCache
ObjectCache.lookup(Identity)
public void remove(Identity oid)
ObjectCache
remove
in interface ObjectCache
oid
- Identity of the object to be removed.ObjectCache.remove(Identity)
public void clear()
ObjectCache
clear
in interface ObjectCache
ObjectCache.clear()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |