org.neodatis.odb.impl.core.transaction
Class TmpCache
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TmpCache
public TmpCache(ISession session,
java.lang.String name)
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