|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
java.lang.Object |
bind(java.lang.Object key,
java.lang.Object oid)
Adds an entry into user cache. |
int |
getId()
|
java.lang.String[] |
getIndexFieldNames()
|
java.lang.String |
getName()
|
boolean |
isActive()
|
java.lang.Object |
lookup(java.lang.Object key)
Look for an identifier of persistent instance from an user key |
java.lang.Object |
unbindFromKey(java.lang.Object key)
Forces the eviction of an entry from an user key |
java.lang.Object |
unbindFromOID(java.lang.Object oid)
Forces the eviction of an entry from an object identifier |
Method Detail |
public java.lang.Object lookup(java.lang.Object key)
key
- is the user key of the searched persistent instance (not null)
public java.lang.Object bind(java.lang.Object key, java.lang.Object oid)
key
- is the user key the user of the persistent instance (not null)oid
- is the identifier of the persistent instance (not null)
public java.lang.Object unbindFromKey(java.lang.Object key)
key
- is the user key of a persistent instance (not null)
public java.lang.Object unbindFromOID(java.lang.Object oid)
oid
- is the identifier of a persistent instance (not null)
public java.lang.String getName()
public int getId()
public boolean isActive()
public java.lang.String[] getIndexFieldNames()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |