org.castor.persist.cache
Class CacheEntry

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

public final class CacheEntry
extends Object
implements Serializable

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

Since:
0.9.9
Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Werner Guttmann
See Also:
Serialized Form

Constructor Summary
CacheEntry(OID oid, Object[] values, long version)
          Construct CacheEntry with given OID, values and version.
 
Method Summary
 OID getOID()
          Get OID of the entity cached.
 Object[] getValues()
          Get actual values of the entity cached.
 long getVersion()
          Get associated version of the entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheEntry

public CacheEntry(OID oid,
                  Object[] values,
                  long version)
Construct CacheEntry with given OID, values and version.

Parameters:
oid - OID of the entity cached.
values - Actual values of the entity cached.
version - Associated version of the entity.
Method Detail

getOID

public OID getOID()
Get OID of the entity cached.

Returns:
OID of the entity cached.

getValues

public Object[] getValues()
Get actual values of the entity cached.

Returns:
Actual values of the entity cached.

getVersion

public long getVersion()
Get associated version of the entity.

Returns:
Associated version of the entity.


Copyright © 2012. All Rights Reserved.