Uses of Interface
org.eclipse.persistence.internal.identitymaps.IdentityMap
Package
Description
-
Uses of IdentityMap in org.eclipse.persistence.descriptors
Modifier and TypeFieldDescriptionprotected Class
<? extends IdentityMap> CachePolicy.identityMapClass
protected Class
<? extends IdentityMap> CachePolicy.remoteIdentityMapClass
Modifier and TypeMethodDescription<T extends IdentityMap>
Class<T> CachePolicy.getIdentityMapClass()
INTERNAL: Return the class of identity map to be used by this descriptor.<T extends IdentityMap>
Class<T> ClassDescriptor.getIdentityMapClass()
INTERNAL: Return the class of identity map to be used by this descriptor.<T extends IdentityMap>
Class<T> CachePolicy.getRemoteIdentityMapClass()
INTERNAL: Return the class of identity map to be used by this descriptor.<T extends IdentityMap>
Class<T> ClassDescriptor.getRemoteIdentityMapClass()
INTERNAL: Return the class of identity map to be used by this descriptor.Modifier and TypeMethodDescriptionvoid
CachePolicy.setIdentityMapClass
(Class<? extends IdentityMap> theIdentityMapClass) PUBLIC: Set the class of identity map to be used by this descriptor.void
ClassDescriptor.setIdentityMapClass
(Class<? extends IdentityMap> theIdentityMapClass) PUBLIC: Set the class of identity map to be used by this descriptor.void
CachePolicy.setRemoteIdentityMapClass
(Class<? extends IdentityMap> theIdentityMapClass) PUBLIC: Set the class of identity map to be used by this descriptor.void
ClassDescriptor.setRemoteIdentityMapClass
(Class<? extends IdentityMap> theIdentityMapClass) PUBLIC: Set the class of identity map to be used by this descriptor. -
Uses of IdentityMap in org.eclipse.persistence.exceptions
Modifier and TypeMethodDescriptionstatic ValidationException
ValidationException.nullCacheKeyFoundOnRemoval
(IdentityMap map, Object clazz) -
Uses of IdentityMap in org.eclipse.persistence.internal.identitymaps
Modifier and TypeClassDescriptionclass
Purpose: Caches objects, and allows their retrieval by their primary key.class
Purpose: A fixed size LRU cacheclass
Purpose: A FullIdentityMap holds all objects stored within it for the life of the application.class
Purpose: A HardCacheWeakIdentityMap is identical to the weak identity map, however the weak reference can be a performance problem for some types of apps because it can cause too much garbage collection of objects read causing them to be re-read and re-built (this defeats the purpose of the cache).class
Purpose: Provide the capability to not cache objects at all.class
Purpose: A SoftCacheWeakIdentityMap is identical to the WeakIdentityMap, however the weak reference can be a performance problem for some types of apps because it can cause too much garbage collection of objects read causing them to be re-read and re-built (this defeats the purpose of the cache).class
Purpose: A SoftIdentityMap holds all objects referenced by the application.class
Unit of work specific identity map which avoid additional overhead not required in unit of work, such as locking and synchronization.class
Purpose: A WeakIdentityMap holds all objects referenced by the application only.class
Modifier and TypeFieldDescriptionprotected IdentityMap
IdentityMapManager.lastAccessedIdentityMap
PERF: Optimize the object retrieval from the identity map.protected IdentityMap
CacheKey.mapOwner
Modifier and TypeFieldDescriptionprotected Map
<CacheIndex, IdentityMap> IdentityMapManager.cacheIndexes
A map of indexes on the cache.protected Map
<Class<?>, IdentityMap> IdentityMapManager.identityMaps
A table of identity maps with the key being the domain Class.protected Map
<Object, IdentityMap> IdentityMapManager.queryResults
A table of identity maps with the key being the queryModifier and TypeMethodDescriptionprotected <T extends IdentityMap>
IdentityMapIdentityMapManager.buildNewIdentityMap
(Class<T> identityMapClass, int size, ClassDescriptor descriptor, boolean isIsolated) INTERNAL: Return a new empty identity map of the class type.Modifier and TypeMethodDescriptionprotected <T extends IdentityMap>
IdentityMapIdentityMapManager.buildNewIdentityMap
(Class<T> identityMapClass, int size, ClassDescriptor descriptor, boolean isIsolated) INTERNAL: Return a new empty identity map of the class type.IdentityMapManager.buildNewIdentityMap
(ClassDescriptor descriptor) INTERNAL: (Public to allow testing to access) Return a new empty identity map to cache instances of the class.IdentityMapManager.getIdentityMap
(ClassDescriptor descriptor) INTERNAL: Return the identity map for the class, if missing create a new one.IdentityMapManager.getIdentityMap
(ClassDescriptor descriptor, boolean returnNullIfNoMap) INTERNAL: Return the identity map for the class.CacheKey.getOwningMap()
Modifier and TypeMethodDescriptionstatic Class
<? extends IdentityMap> AbstractIdentityMap.getDefaultIdentityMapClass()
Returns the class which should be used as an identity map in a descriptor by default.protected Map
<Class<?>, IdentityMap> IdentityMapManager.getIdentityMaps()
-
Uses of IdentityMap in org.eclipse.persistence.internal.sessions
Modifier and TypeMethodDescriptionIdentityMapAccessor.getIdentityMap
(Class<?> theClass) INTERNAL: (public to allow test cases to check) Return the identity map for the class, if missing create a new one.IdentityMapAccessor.getIdentityMap
(ClassDescriptor descriptor) INTERNAL: Get the identity map for the given class from the IdentityMapManagerIdentityMapAccessor.getIdentityMap
(ClassDescriptor descriptor, boolean returnNullIfMissing) INTERNAL: Get the identity map for the given class from the IdentityMapManagerIsolatedClientSessionIdentityMapAccessor.getIdentityMap
(ClassDescriptor descriptor, boolean returnNullIfMissing) INTERNAL: Get the identity map for the given class from the IdentityMapManager -
Uses of IdentityMap in org.eclipse.persistence.queries
Modifier and TypeFieldDescriptionprotected Class
<? extends IdentityMap> QueryResultsCachePolicy.cacheType
Allows the identity map class type to be set.Modifier and TypeMethodDescriptionClass
<? extends IdentityMap> QueryResultsCachePolicy.getCacheType()
PUBLIC: Return the type of the cache used for the query results.Modifier and TypeMethodDescriptionvoid
QueryResultsCachePolicy.setCacheType
(Class<? extends IdentityMap> cacheType) PUBLIC: Set the type of the cache used for the query results. -
Uses of IdentityMap in org.eclipse.persistence.sessions
Modifier and TypeFieldDescriptionprotected Class
<? extends IdentityMap> Project.defaultIdentityMapClass
Default value for ClassDescriptor.identityMapClass.Modifier and TypeMethodDescriptionClass
<? extends IdentityMap> Project.getDefaultIdentityMapClass()
PUBLIC: Return default value for descriptor cache type.Modifier and TypeMethodDescriptionvoid
Project.setDefaultIdentityMapClass
(Class<? extends IdentityMap> defaultIdentityMapClass) PUBLIC: Set default value for descriptor cache type. -
Uses of IdentityMap in org.eclipse.persistence.sessions.interceptors
Modifier and TypeClassDescriptionclass
Purpose: Define a class through which Cache access can be intercepted.Modifier and TypeFieldDescriptionprotected IdentityMap
CacheInterceptor.targetIdentityMap
This attribute stores the actual IdentityMap as configured by the user.Modifier and TypeMethodDescriptionCacheKeyInterceptor.getOwningMap()
CacheInterceptor.getTargetIdenttyMap()
Return the instance of the IdentityMap that this intercpetor is wrapping.ModifierConstructorDescriptionprotected
CacheInterceptor
(IdentityMap targetIdentityMap, AbstractSession interceptedSession)