|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.broker.cache.ObjectCacheEmptyImpl
public class 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,
Properties prop)
|
Method Summary | |
---|---|
void |
cache(Identity oid,
Object obj)
Used to cache objects by it's Identity . |
void |
clear()
Clear the cache. |
Object |
lookup(Identity oid)
Lookup object with Identity 'oid' in cache. |
void |
remove(Identity oid)
Removes an Object from the cache. |
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, Properties prop)
Method Detail |
---|
public void cache(Identity oid, Object obj)
ObjectCache
Identity
.
cache
in interface ObjectCache
oid
- Identity of the object to cache.obj
- The object to cache.ObjectCache.cache(Identity, Object)
public Object lookup(Identity oid)
ObjectCache
lookup
in interface ObjectCache
oid
- Identity of the object to search for.
Identity
is found.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 String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |