Package org.castor.persist.cache
Class CacheEntry
java.lang.Object
org.castor.persist.cache.CacheEntry
- All Implemented Interfaces:
Serializable
Utility class to store 'data' accessed through Castor JDO in performance caches.
- Since:
- 0.9.9
- Version:
- $Revision: 7720 $ $Date: 2005-12-01 14:45:18 -0700 (Thu, 01 Dec 2005) $
- Author:
- Werner Guttmann
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]
getEntry()
Get actual data to be cached.getOID()
Get OID of the entry to be cached.long
Get associated time stamp.void
Set actual data to be cached.void
Set OID of the entry to be cached.void
setTimeStamp
(long stamp) Set associated time stamp.
-
Constructor Details
-
CacheEntry
public CacheEntry() -
CacheEntry
-
-
Method Details
-
getOID
Get OID of the entry to be cached.- Returns:
- OID of the entry to be cached.
-
setOID
Set OID of the entry to be cached.- Parameters:
oid
- OID of the entry to be cached.
-
getEntry
Get actual data to be cached.- Returns:
- Actual data to be cached.
-
setEntry
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.
-