| org.objectweb.speedo.usercache.api.UserCache
All known Subclasses: org.objectweb.speedo.usercache.lib.CompositeUserCache, org.objectweb.speedo.usercache.lib.UserCacheImpl,
UserCache | public interface UserCache (Code) | | Defines an user cache of persistent objects. The user cache maintains
bindings between an object identifier and the user key. This cache can be
implemented such as a coherent double map (oid=>key and key=>oid).
The user cache entry can be removed (unbound) from the user key or from the
object identifier. Indeed when an object is removed from the real cache, the
persistent object is no more availlable, its user key too.
author: S.Chassande-Barrioz |
bind | Object bind(Object key, Object oid)(Code) | | Adds an entry into user cache. If an entry already exists with the same
identifier or the same key, it has been replaced.
Parameters: key - is the user key the user of the persistent instance (not null) Parameters: oid - is the identifier of the persistent instance (not null) the previous associated identifier of a persistent instance associated to the specified user key. The null value is returned if no entry was previously bound. |
isActive | boolean isActive()(Code) | | |
lookup | Object lookup(Object key)(Code) | | Look for an identifier of persistent instance from an user key
Parameters: key - is the user key of the searched persistent instance (not null) the identifier of the persistent instance corresponding to theuser key. If not found, a null value is returned. |
unbindFromKey | Object unbindFromKey(Object key)(Code) | | Forces the eviction of an entry from an user key
Parameters: key - is the user key of a persistent instance (not null) the object identifier if found, otherwise null |
unbindFromOID | Object unbindFromOID(Object oid)(Code) | | Forces the eviction of an entry from an object identifier
Parameters: oid - is the identifier of a persistent instance (not null) the user key if found, otherwise null |
|
|