Top Description Fields Constructors Methods
org.eclipse.persistence.internal.identitymaps

public Class SoftCacheKey

extends WeakCacheKey
Class Inheritance
Imports
java.lang.ref.*

Purpose: Container class for storing objects in an IdentityMap. The soft cache key uses a soft reference to allow garbage collection of its object. The cache key itself however will remain and thus should cleaned up every now and then.

Responsibilities:

Author
James Sutherland
Since
TopLink 11g

Field Summary

Inherited from org.eclipse.persistence.internal.identitymaps.WeakCacheKey:
reference

Constructor Summary

AccessConstructor and Description
public
SoftCacheKey(Object
contains values extracted from the object
primaryKey
,
Object object, Object
is the write lock value, null if optimistic locking not being used for this object.
writeLockValue
,
long
the time EclipseLInk read the cache key
readTime
,
boolean isIsolated)

Initialize the newly allocated instance of this class.

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from org.eclipse.persistence.internal.identitymaps.WeakCacheKey:
getObject

Constructor Detail

SoftCacheKeyback to summary
public SoftCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime, boolean isIsolated)

Initialize the newly allocated instance of this class.

Parameters
primaryKey:Object

contains values extracted from the object

writeLockValue:Object

is the write lock value, null if optimistic locking not being used for this object.

readTime:long

the time EclipseLInk read the cache key

Method Detail

setObjectback to summary
public void setObject(Object object)

Overrides org.eclipse.persistence.internal.identitymaps.WeakCacheKey.setObject.

Annotations
@Override