public class ObjectCacheEmptyImpl extends java.lang.Object implements ObjectCache
Implementation configuration properties:
Property Key | Property Values |
- | - |
Constructor and Description |
---|
ObjectCacheEmptyImpl(PersistenceBroker broker,
java.util.Properties prop) |
Modifier and Type | Method and Description |
---|---|
void |
cache(Identity oid,
java.lang.Object obj)
Used to cache objects by it's
Identity . |
void |
clear()
Clear the cache.
|
java.lang.Object |
lookup(Identity oid)
Lookup object with Identity 'oid' in cache.
|
void |
remove(Identity oid)
Removes an Object from the cache.
|
java.lang.String |
toString() |
public ObjectCacheEmptyImpl(PersistenceBroker broker, java.util.Properties prop)
public void cache(Identity oid, java.lang.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 java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30