org.castor.persist.cache
Class CacheEntry

java.lang.Object
  extended by org.castor.persist.cache.CacheEntry
All Implemented Interfaces:
java.io.Serializable

public final class CacheEntry
extends java.lang.Object
implements java.io.Serializable

Utility class to store 'data' accessed through Castor JDO in performance caches.

Since:
0.9.9
Version:
$Revision: 1.1 $ $Date: 2005/07/27 11:54:21 $
Author:
Werner Guttmann
See Also:
Serialized Form

Constructor Summary
CacheEntry(ObjectLock lock)
          Construct a CacheEntry from the given ObjectLock.
 
Method Summary
 java.lang.Object getEntry()
          Get actual data to be cached.
 OID getOID()
          Get OID of the entry to be cached.
 long getTimeStamp()
          Get associated time stamp.
 void setEntry(java.lang.Object entry)
          Set actual data to be cached.
 void setOID(OID oid)
          Set OID of the entry to be cached.
 void setTimeStamp(long stamp)
          Set associated time stamp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEntry

public CacheEntry(ObjectLock lock)
Construct a CacheEntry from the given ObjectLock.

Parameters:
lock - The ObjectLock this CacheEntry should be initialized from.
Method Detail

getOID

public OID getOID()
Get OID of the entry to be cached.

Returns:
OID of the entry to be cached.

setOID

public void setOID(OID oid)
Set OID of the entry to be cached.

Parameters:
oid - OID of the entry to be cached.

getEntry

public java.lang.Object getEntry()
Get actual data to be cached.

Returns:
Actual data to be cached.

setEntry

public void setEntry(java.lang.Object entry)
Set actual data to be cached.

Parameters:
entry - Actual data to be cached.

getTimeStamp

public long getTimeStamp()
Get associated time stamp.

Returns:
Associated time stamp.

setTimeStamp

public void setTimeStamp(long stamp)
Set associated time stamp.

Parameters:
stamp - Associated time stamp.


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com