Package net.ontopia.persistence.proxy
Class ROLocalCache
- java.lang.Object
-
- net.ontopia.persistence.proxy.AbstractLocalCache
-
- net.ontopia.persistence.proxy.ROLocalCache
-
- All Implemented Interfaces:
AccessRegistrarIF,StorageCacheIF
public class ROLocalCache extends AbstractLocalCache
INTERNAL: A transactional read-only storage cache implementation.
-
-
Field Summary
-
Fields inherited from class net.ontopia.persistence.proxy.AbstractLocalCache
pcache, pregistrar, ticket, txn
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(StorageAccessIF access, IdentityIF identity)INTERNAL: Can be called to verify whether the specified identity exists in the cache or in the data repository.ObjectgetValue(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.StringtoString()-
Methods inherited from class net.ontopia.persistence.proxy.AbstractLocalCache
clear, close, createIdentity, createIdentity, createIdentity, evictField, evictFields, evictIdentity, getRegistrar, getTicket, isFieldLoaded, isObjectLoaded, prefetch, registerEviction, registerField, registerIdentity, releaseEviction
-
-
-
-
Method Detail
-
exists
public boolean exists(StorageAccessIF access, IdentityIF identity)
Description copied from interface:StorageCacheIFINTERNAL: Can be called to verify whether the specified identity exists in the cache or in the data repository. Whether the data repository is actually asked depends on the policy of the storage cache.- Specified by:
existsin interfaceStorageCacheIF- Specified by:
existsin classAbstractLocalCache
-
getValue
public Object getValue(StorageAccessIF access, IdentityIF identity, int field)
Description copied from interface:StorageCacheIFINTERNAL: A call forwarded by the transaction (TransactionIF) from persistent objects (PersistentIF) when the field value needs to be retrieved from storage. The field value will be returned.- Specified by:
getValuein interfaceStorageCacheIF- Specified by:
getValuein classAbstractLocalCache
-
-