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

java.lang.Object
  extended by org.neodatis.odb.impl.core.transaction.TmpCache
All Implemented Interfaces:
ITmpCache

public class TmpCache
extends java.lang.Object
implements ITmpCache

A temporary cache of objects.

Author:
olivier s

Field Summary
protected  java.lang.String name
           
protected  java.util.Map<OID,java.lang.Object[]> readingObjectInfo
          To resolve cyclic reference, keep track of objects being read
protected  ISession session
           
 
Constructor Summary
TmpCache(ISession session, java.lang.String name)
           
 
Method Summary
 void clearObjectInfos()
           
 NonNativeObjectInfo getReadingObjectInfoFromOid(OID oid)
           
protected  void init(ISession session, java.lang.String name)
           
 boolean isReadingObjectInfoWithOid(OID oid)
           
 int size()
           
 void startReadingObjectInfoWithOid(OID oid, NonNativeObjectInfo objectInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readingObjectInfo

protected java.util.Map<OID,java.lang.Object[]> readingObjectInfo
To resolve cyclic reference, keep track of objects being read


session

protected ISession session

name

protected java.lang.String name
Constructor Detail

TmpCache

public TmpCache(ISession session,
                java.lang.String name)
Method Detail

init

protected void init(ISession session,
                    java.lang.String name)

isReadingObjectInfoWithOid

public boolean isReadingObjectInfoWithOid(OID oid)
Specified by:
isReadingObjectInfoWithOid in interface ITmpCache

getReadingObjectInfoFromOid

public NonNativeObjectInfo getReadingObjectInfoFromOid(OID oid)
Specified by:
getReadingObjectInfoFromOid in interface ITmpCache

startReadingObjectInfoWithOid

public void startReadingObjectInfoWithOid(OID oid,
                                          NonNativeObjectInfo objectInfo)
Specified by:
startReadingObjectInfoWithOid in interface ITmpCache

clearObjectInfos

public void clearObjectInfos()
Specified by:
clearObjectInfos in interface ITmpCache

size

public int size()
Specified by:
size in interface ITmpCache