|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.object.HashCachePolicy
Class responsible for caching NakedObjects in a single Hashtable.
| Constructor Summary | |
HashCachePolicy()
|
|
| Method Summary | |
void |
add(NakedObject object)
Add a NakedObject to the cache. |
void |
clear()
Clear the cache. |
boolean |
contains(java.lang.Object oid)
Return true if cache contains object |
java.lang.String |
dump()
Dump the contents of the cache to the log. |
NakedObject |
get(java.lang.Object oid)
Retrieve a NakedObject from the cache. |
void |
remove(NakedObject object)
Remove a NakedObject to the cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HashCachePolicy()
| Method Detail |
public void add(NakedObject object)
add in interface CachePolicyobject - the NakedObject to add to the cachepublic void clear()
clear in interface CachePolicypublic boolean contains(java.lang.Object oid)
contains in interface CachePolicyoid - the OID of the NakedObjectpublic java.lang.String dump()
dump in interface CachePolicypublic NakedObject get(java.lang.Object oid)
get in interface CachePolicyoid - the OID of the NakedObject to getpublic void remove(NakedObject object)
remove in interface CachePolicyobject - the NakedObject to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||