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

public Class SoftIdentityMap

extends WeakIdentityMap
Class Inheritance
Imports
org.eclipse.persistence.descriptors.ClassDescriptor, org.eclipse.persistence.internal.sessions.AbstractSession

Purpose: A SoftIdentityMap holds all objects referenced by the application. The soft identity map is similar to the weak identity map except for the fact that it allows only garbage collects when memory is low.

Responsibilities:

Author
James Sutherland
Since
TopLink 11g

Field Summary

Inherited from org.eclipse.persistence.internal.identitymaps.WeakIdentityMap:
cleanupCountcleanupSize

Constructor Summary

AccessConstructor and Description
public
SoftIdentityMap(int size, ClassDescriptor descriptor, AbstractSession session, boolean isIsolated)

Method Summary

Modifier and TypeMethod and Description
public CacheKey
createCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime)

Overrides org.eclipse.persistence.internal.identitymaps.WeakIdentityMap.createCacheKey.

Create the correct type of CacheKey for this map.
Inherited from org.eclipse.persistence.internal.identitymaps.WeakIdentityMap:
checkCleanupcleanupDeadCacheKeysputCacheKeyIfAbsent

Constructor Detail

SoftIdentityMapback to summary
public SoftIdentityMap(int size, ClassDescriptor descriptor, AbstractSession session, boolean isIsolated)

Method Detail

createCacheKeyback to summary
public CacheKey createCacheKey(Object primaryKey, Object object, Object writeLockValue, long readTime)

Overrides org.eclipse.persistence.internal.identitymaps.WeakIdentityMap.createCacheKey.

Doc from org.eclipse.persistence.internal.identitymaps.AbstractIdentityMap.createCacheKey.

Create the correct type of CacheKey for this map.

Annotations
@Override