|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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)
ObjectCacheIdentity.
cache in interface ObjectCacheoid - Identity of the object to cache.obj - The object to cache.ObjectCache.cache(Identity, Object)public Object lookup(Identity oid)
ObjectCache
lookup in interface ObjectCacheoid - Identity of the object to search for.
Identity is found.ObjectCache.lookup(Identity)public void remove(Identity oid)
ObjectCache
remove in interface ObjectCacheoid - Identity of the object to be removed.ObjectCache.remove(Identity)public void clear()
ObjectCache
clear in interface ObjectCacheObjectCache.clear()public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||