|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpersistence.cache.SimpleCache
Eenvoudige implementatie van cache. Idealiter ook reference count, ...
Field Summary | |
private java.util.Map |
deepObjects
|
private java.util.Map |
shallowObjects
|
Constructor Summary | |
SimpleCache()
|
Method Summary | |
boolean |
checkForDeepOID(ObjectID OID)
Is deep object met OID al gecached? |
boolean |
checkForShallowOID(ObjectID OID)
Is shallow object met OID al gecached? |
java.lang.Object |
readDeep(ObjectID OID)
Read deep object with OID. |
java.lang.Object |
readShallow(ObjectID OID)
Read shallow object with OID. |
void |
remove(ObjectID OID)
Cache bevat persistente objecten. |
java.lang.String |
toString()
Shows contents cache. |
void |
writeDeepToCache(ObjectID OID,
java.lang.Object ob)
Write deep object with OID. |
void |
writeShallowToCache(ObjectID OID,
java.lang.Object ob)
Write shallow object with OID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.util.Map deepObjects
private java.util.Map shallowObjects
Constructor Detail |
public SimpleCache()
Method Detail |
public java.lang.Object readDeep(ObjectID OID) throws NotInCacheException
Cache
readDeep
in interface Cache
OID
-
NotInCacheException
Cache.readDeep(persistence.type.ObjectID)
public java.lang.Object readShallow(ObjectID OID) throws NotInCacheException
Cache
readShallow
in interface Cache
OID
-
NotInCacheException
Cache.readShallow(persistence.type.ObjectID)
public void writeDeepToCache(ObjectID OID, java.lang.Object ob) throws AlreadyInCacheException
Cache
writeDeepToCache
in interface Cache
ob
-
AlreadyInCacheException
persistence.cache.Cache#writeDeepToCache(persistence.type.Persistent)
public void writeShallowToCache(ObjectID OID, java.lang.Object ob) throws AlreadyInCacheException
Cache
writeShallowToCache
in interface Cache
ob
-
AlreadyInCacheException
persistence.cache.Cache#writeShallowToCache(persistence.type.Persistent)
public boolean checkForDeepOID(ObjectID OID)
Cache
checkForDeepOID
in interface Cache
OID
-
Cache.checkForDeepOID(persistence.type.ObjectID)
public boolean checkForShallowOID(ObjectID OID)
Cache
checkForShallowOID
in interface Cache
OID
-
Cache.checkForShallowOID(persistence.type.ObjectID)
public void remove(ObjectID OID)
remove
in interface Cache
OID
- Cache.remove(persistence.type.ObjectID)
public java.lang.String toString()
Cache
toString
in interface Cache
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |