org.castor.persist.cache
Class CacheEntry
java.lang.Objectorg.castor.persist.cache.CacheEntry
- 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.
$Revision: 7121 $ $Date: 2005-12-01 14:45:18 -0700 (Thu, 01 Dec 2005) $
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(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.
|
CacheEntry
public CacheEntry(ObjectLock lock)
Construct a CacheEntry from the given ObjectLock.
lock - The ObjectLock this CacheEntry should be initialized from.
getEntry
public Object[] getEntry()
Get actual data to be cached.
- Actual data to be cached.
getOID
public OID getOID()
Get OID of the entry to be cached.
- OID of the entry to be cached.
getTimeStamp
public long getTimeStamp()
Get associated time stamp.
setEntry
public void setEntry(Object[] entry)
Set actual data to be cached.
entry - Actual data to be cached.
setOID
public void setOID(OID oid)
Set OID of the entry to be cached.
oid - OID of the entry to be cached.
setTimeStamp
public void setTimeStamp(long stamp)
Set associated time stamp.
stamp - Associated time stamp.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com