|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jso.cache.JSOObjectDataCache
Object caching management classes.
Constructor Summary | |
JSOObjectDataCache(int cacheSize)
Constructs the cache. |
Method Summary | |
ObjectData |
get(OID oid)
Gets an object's data in the cache. |
CacheInfo |
getCacheInfo()
Gets cache information. |
void |
invalidate()
Invalidates all cached data. |
void |
invalidate(java.lang.Class cls)
Invalidates all data of objects of a class. |
void |
invalidate(OID oid)
Invalidates an object's data. |
ObjectData |
put(ObjectData data)
Puts an object's data in the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JSOObjectDataCache(int cacheSize)
cacheSize
- Size of the cache.Method Detail |
public ObjectData put(ObjectData data)
put
in interface ObjectDataCache
data
- Object's data.public ObjectData get(OID oid)
get
in interface ObjectDataCache
oid
- Object's identification.
null
is returned.public void invalidate()
invalidate
in interface ObjectDataCache
public CacheInfo getCacheInfo()
getCacheInfo
in interface ObjectDataCache
public void invalidate(OID oid)
invalidate
in interface ObjectDataCache
oid
- Object's identification.public void invalidate(java.lang.Class cls)
invalidate
in interface ObjectDataCache
cls
- The class of the objects.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |