org.castor.persist.cache

Class CacheEntry

public final class CacheEntry extends Object implements 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

Constructor Summary
CacheEntry(ObjectLock lock)
Construct a CacheEntry from the given ObjectLock.
Method Summary
ObjectgetEntry()
Get actual data to be cached.
OIDgetOID()
Get OID of the entry to be cached.
longgetTimeStamp()
Get associated time stamp.
voidsetEntry(Object entry)
Set actual data to be cached.
voidsetOID(OID oid)
Set OID of the entry to be cached.
voidsetTimeStamp(long stamp)
Set associated time stamp.

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

getEntry

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

Returns: Actual data to be cached.

getOID

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

Returns: OID of the entry to be cached.

getTimeStamp

public long getTimeStamp()
Get associated time stamp.

Returns: Associated time stamp.

setEntry

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

Parameters: entry Actual data 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.

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