org.neodatis.odb.impl.core.transaction
Class LazyCache
java.lang.Object
org.neodatis.odb.impl.core.transaction.Cache
org.neodatis.odb.impl.core.transaction.LazyCache
- All Implemented Interfaces:
- ICache
- Direct Known Subclasses:
- LazyServerCache
public class LazyCache
- extends Cache
- Author:
- olivier s
Fields inherited from class org.neodatis.odb.impl.core.transaction.Cache |
insertingObjects, name, nbCallsToGetObjectInfoHeaderFromObject, nbCallsToGetObjectInfoHeaderFromOid, nbCallsToGetObjectWithOid, nbObjectPositionByIds, nbObjects, nbOids, nbOih, nbTransactionOids, objectInfoPointersCacheFromOid, objectPositionsByIds, objects, oids, readingObjectInfo, session, unconnectedZoneOids, useCache |
Methods inherited from class org.neodatis.odb.impl.core.transaction.Cache |
addOIDToUnconnectedZone, clear, clearInsertingObjects, clearOnCommit, endInsertingObject, endReadingObjectInfo, existObject, getNumberOfObjectHeader, getNumberOfObjects, getObjectInfoPointersCacheFromOid, getObjectPositionByOid, getObjects, getOids, getReadingObjectInfoFromOid, idOfInsertingObject, insertingLevelOf, isDeleted, isReadingObjectInfoWithOid, markIdAsDeleted, objectWithIdIsInCommitedZone, removeObject, removeObjectWithOid, savePositionOfObjectWithOid, setObjectInfoPointersCacheFromOid, setObjects, setOids, startInsertingObjectWithOid, startReadingObjectInfoWithOid, toCompleteString, toString, updateIdOfInsertingObject, usage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LazyCache
protected LazyCache(ISession session)
init
protected void init(ISession session,
java.lang.String name)
- Overrides:
init
in class Cache
addObject
public void addObject(OID oid,
java.lang.Object object,
ObjectInfoHeader objectInfoHeader)
- Specified by:
addObject
in interface ICache
- Overrides:
addObject
in class Cache
addObjectInfo
public void addObjectInfo(ObjectInfoHeader objectInfoHeader)
- Description copied from class:
Cache
- Only adds the Object info - used for non committed objects
- Specified by:
addObjectInfo
in interface ICache
- Overrides:
addObjectInfo
in class Cache
getObjectInfoHeaderFromOid
public ObjectInfoHeader getObjectInfoHeaderFromOid(OID oid,
boolean throwExceptionIfNotFound)
- Specified by:
getObjectInfoHeaderFromOid
in interface ICache
- Overrides:
getObjectInfoHeaderFromOid
in class Cache
manageFullCache
protected void manageFullCache()
- Overrides:
manageFullCache
in class Cache
getOid
public OID getOid(java.lang.Object object,
boolean throwExceptionIfNotFound)
- Specified by:
getOid
in interface ICache
- Overrides:
getOid
in class Cache
getObjectWithOid
public java.lang.Object getObjectWithOid(OID oid)
- Specified by:
getObjectWithOid
in interface ICache
- Overrides:
getObjectWithOid
in class Cache
getObjectInfoHeaderFromObject
public ObjectInfoHeader getObjectInfoHeaderFromObject(java.lang.Object object,
boolean throwExceptionIfNotFound)
- Specified by:
getObjectInfoHeaderFromObject
in interface ICache
- Overrides:
getObjectInfoHeaderFromObject
in class Cache
checkHeaderPosition
protected boolean checkHeaderPosition()
- Overrides:
checkHeaderPosition
in class Cache
getQueue
public java.lang.ref.ReferenceQueue getQueue()