Purpose: Container class for storing objects in an IdentityMap.
The weak cache key uses a weak reference to allow garbage collection of its object.
The cache key itself however will remain and thus should cleaned up every no and then.
Responsibilities:
Hold key and object.
Maintain and update the current writeLockValue.
since
TOPLink/Java 1.0
Fields Summary
protected WeakReference
reference
Reference is maintained weak to allow garbage collection
Constructors Summary
public WeakCacheKey(Vector primaryKey, Object object, Object writeLockValue, long readTime)
Initialize the newly allocated instance of this class.
param
primaryKey contains values extracted from the object
param
writeLockValue is the write lock value, null if optimistic locking not being used for this object.