org.neodatis.odb.impl.core.transaction
Class ServerCache

java.lang.Object
  extended by org.neodatis.odb.impl.core.transaction.Cache
      extended by org.neodatis.odb.impl.core.transaction.ServerCache
All Implemented Interfaces:
ICache

public class ServerCache
extends Cache

A specific cache for the server in Client/Server mode

Author:
osmadja

Field Summary
protected  java.util.Map<OID,NonNativeObjectInfo> oidsOfNNoi
          Object id of NonNativeObjectInfo
 
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
 
Constructor Summary
ServerCache(ISession session)
           
 
Method Summary
 void addOid(OID oid, NonNativeObjectInfo nnoi)
           
protected  boolean checkHeaderPosition()
           
 void clear(boolean setToNull)
           
 void startInsertingObjectWithOid(java.lang.Object object, OID oid, NonNativeObjectInfo nnoi)
           
 
Methods inherited from class org.neodatis.odb.impl.core.transaction.Cache
addObject, addObjectInfo, addOIDToUnconnectedZone, clearInsertingObjects, clearOnCommit, endInsertingObject, endReadingObjectInfo, existObject, getNumberOfObjectHeader, getNumberOfObjects, getObjectInfoHeaderFromObject, getObjectInfoHeaderFromOid, getObjectInfoPointersCacheFromOid, getObjectPositionByOid, getObjects, getObjectWithOid, getOid, getOids, getReadingObjectInfoFromOid, idOfInsertingObject, init, insertingLevelOf, isDeleted, isReadingObjectInfoWithOid, manageFullCache, markIdAsDeleted, objectWithIdIsInCommitedZone, removeObject, removeObjectWithOid, savePositionOfObjectWithOid, setObjectInfoPointersCacheFromOid, setObjects, setOids, startReadingObjectInfoWithOid, toCompleteString, toString, updateIdOfInsertingObject, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

oidsOfNNoi

protected java.util.Map<OID,NonNativeObjectInfo> oidsOfNNoi
Object id of NonNativeObjectInfo

Constructor Detail

ServerCache

public ServerCache(ISession session)
Method Detail

addOid

public void addOid(OID oid,
                   NonNativeObjectInfo nnoi)

startInsertingObjectWithOid

public void startInsertingObjectWithOid(java.lang.Object object,
                                        OID oid,
                                        NonNativeObjectInfo nnoi)
Specified by:
startInsertingObjectWithOid in interface ICache
Overrides:
startInsertingObjectWithOid in class Cache

clear

public void clear(boolean setToNull)
Specified by:
clear in interface ICache
Overrides:
clear in class Cache

checkHeaderPosition

protected boolean checkHeaderPosition()
Overrides:
checkHeaderPosition in class Cache