com.orientechnologies.jdo
Class oCacheItem

java.lang.Object
  extended bycom.orientechnologies.jdo.oCacheItem
All Implemented Interfaces:
java.io.Serializable

public class oCacheItem
extends java.lang.Object
implements java.io.Serializable

Cache item to handle. It contains information about persistent object to cache by oCacheManager instance.

NOTE: Internal use only, JDO Applications must not use this class directly.

See Also:
oCacheManager, Serialized Form

Constructor Summary
oCacheItem(oOID iOid, oBinary iObject, boolean iPinned, oTransaction iTx)
           
 
Method Summary
 void exclusiveLock(oTransaction iTx)
           
 oTransaction getExclusiveWriter()
           
 oBinary getObject()
           
 oOID getOid()
           
 java.util.ArrayList getSharedReaders()
           
 boolean isAvailable()
           
 boolean isPinned()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

oCacheItem

public oCacheItem(oOID iOid,
                  oBinary iObject,
                  boolean iPinned,
                  oTransaction iTx)
Method Detail

exclusiveLock

public void exclusiveLock(oTransaction iTx)
                   throws oObjectLockedException,
                          oObjectNotLockedException
Throws:
oObjectLockedException
oObjectNotLockedException

isAvailable

public boolean isAvailable()

isPinned

public boolean isPinned()

getExclusiveWriter

public oTransaction getExclusiveWriter()

getObject

public oBinary getObject()

getOid

public oOID getOid()

getSharedReaders

public java.util.ArrayList getSharedReaders()