|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines an user view of the cache of persistent objects
Method Summary | |
java.lang.Object |
bind(java.lang.Object key,
java.lang.Object obj)
Register a persistent instance into the user view. |
void |
clean()
Try to auto clean the user cache view. |
java.lang.Object |
lookup(java.lang.Class clazz,
java.lang.Object key)
Look for a persistent instance with an user identifier and a class |
java.lang.Object |
rebind(java.lang.Object oldkey,
java.lang.Object newkey,
java.lang.Object obj)
Register an entry with an new user key. |
java.lang.Object |
unbind(java.lang.Class clazz,
java.lang.Object key)
Forces the eviction of an entry |
Method Detail |
public java.lang.Object lookup(java.lang.Class clazz, java.lang.Object key)
clazz
- is the class of the searched persistent instancekey
- is the user key of the searched persistent instance
public java.lang.Object bind(java.lang.Object key, java.lang.Object obj)
key
- is the user key of the persistent instanceobj
- is the persistent instance. It cannot be null.
public java.lang.Object rebind(java.lang.Object oldkey, java.lang.Object newkey, java.lang.Object obj)
oldkey
- is the old user key of the persistent instancenewkey
- is the new user key of the persistent instanceobj
- is the persistent instance. It cannot be null.
public java.lang.Object unbind(java.lang.Class clazz, java.lang.Object key)
clazz
- is the class of the persistent instancekey
- is the user key of the persistent instance
public void clean()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |