net.sf.jso.cache
Interface ObjectDataCache

All Known Implementing Classes:
JSOObjectDataCache

public interface ObjectDataCache

Interface for object caching management classes.


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.
 

Method Detail

put

public ObjectData put(ObjectData data)
Puts an object's data in the cache.

Parameters:
data - Object's data.

get

public ObjectData get(OID oid)
Gets an object's data in the cache.

Parameters:
oid - Object's identification.
Returns:
If an object associated with the supplied oid is found its data is returned. Otherwise null is returned.

invalidate

public void invalidate()
Invalidates all cached data.


getCacheInfo

public CacheInfo getCacheInfo()
Gets cache information.

Returns:
Information about the cache.

invalidate

public void invalidate(OID oid)
Invalidates an object's data.

Parameters:
oid - Object's identification.

invalidate

public void invalidate(java.lang.Class cls)
Invalidates all data of objects of a class.

Parameters:
cls - The class of the objects.