|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StorageCacheIF
INTERNAL: Interface used by the transaction to get hold of objects and object field values. Implementations of this interface are free do quite a lot of optimizations when it comes to memory handling and data repository access.
Method Summary | |
---|---|
void |
clear(boolean notifyCluster)
INTERNAL: Clears the cache. |
void |
close()
INTERNAL: Releases all resources used by the storage cache. |
void |
evictField(IdentityIF identity,
int field,
boolean notifyCluster)
INTERNAL: Evict the identity's field value from the cache. |
void |
evictFields(IdentityIF identity,
boolean notifyCluster)
INTERNAL: Evict all the identity's field values from the cache. |
void |
evictIdentity(IdentityIF identity,
boolean notifyCluster)
INTERNAL: Evict the identity from the cache. |
boolean |
exists(StorageAccessIF access,
IdentityIF identity)
INTERNAL: Can be called to verify whether the specified identity exists in the cache or in the data repository. |
AccessRegistrarIF |
getRegistrar()
INTERNAL: Returns the access registrar instance that is used by the storage cache. |
java.lang.Object |
getValue(StorageAccessIF access,
IdentityIF identity,
int field)
INTERNAL: A call forwarded by the transaction (TransactionIF) from persistent objects (PersistentIF) when the field value needs to be retrieved from storage. |
boolean |
isFieldLoaded(IdentityIF identity,
int field)
INTERNAL: Can be called to check if the specfied field has been registered with the cache. |
boolean |
isObjectLoaded(IdentityIF identity)
INTERNAL: Can be called to check if the identity has been registered with the cache. |
int |
prefetch(StorageAccessIF access,
java.lang.Object type,
int field,
int nextField,
boolean traverse,
java.util.Collection identities)
|
void |
registerEviction()
INTERNAL: Tells the cache that eviction is starting. |
void |
releaseEviction()
INTERNAL: Deregister eviction. |
Method Detail |
---|
boolean exists(StorageAccessIF access, IdentityIF identity)
java.lang.Object getValue(StorageAccessIF access, IdentityIF identity, int field) throws IdentityNotFoundException
IdentityNotFoundException
- if the identity was not found.boolean isObjectLoaded(IdentityIF identity)
boolean isFieldLoaded(IdentityIF identity, int field)
void registerEviction()
void releaseEviction()
void evictIdentity(IdentityIF identity, boolean notifyCluster)
void evictFields(IdentityIF identity, boolean notifyCluster)
void evictField(IdentityIF identity, int field, boolean notifyCluster)
void clear(boolean notifyCluster)
int prefetch(StorageAccessIF access, java.lang.Object type, int field, int nextField, boolean traverse, java.util.Collection identities)
AccessRegistrarIF getRegistrar()
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |