Uses of Interface
org.eclipse.persistence.internal.identitymaps.IdentityMap
Packages that use IdentityMap
Package
Description
-
Uses of IdentityMap in org.eclipse.persistence.descriptors
Fields in org.eclipse.persistence.descriptors with type parameters of type IdentityMapModifier and TypeFieldDescriptionprotected Class
<? extends IdentityMap> CachePolicy.identityMapClass
protected Class
<? extends IdentityMap> CachePolicy.remoteIdentityMapClass
Methods in org.eclipse.persistence.descriptors with type parameters of type IdentityMapModifier 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.Method parameters in org.eclipse.persistence.descriptors with type arguments of type IdentityMapModifier 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
Methods in org.eclipse.persistence.exceptions with parameters of type IdentityMapModifier and TypeMethodDescriptionstatic ValidationException
ValidationException.nullCacheKeyFoundOnRemoval
(IdentityMap map, Object clazz) -
Uses of IdentityMap in org.eclipse.persistence.internal.identitymaps
Classes in org.eclipse.persistence.internal.identitymaps that implement IdentityMapModifier 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
Fields in org.eclipse.persistence.internal.identitymaps declared as IdentityMapModifier and TypeFieldDescriptionprotected IdentityMap
IdentityMapManager.lastAccessedIdentityMap
PERF: Optimize the object retrieval from the identity map.protected IdentityMap
CacheKey.mapOwner
Fields in org.eclipse.persistence.internal.identitymaps with type parameters of type IdentityMapModifier 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 queryMethods in org.eclipse.persistence.internal.identitymaps with type parameters of type IdentityMapModifier 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.Methods in org.eclipse.persistence.internal.identitymaps that return IdentityMapModifier 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()
Methods in org.eclipse.persistence.internal.identitymaps that return types with arguments of type IdentityMapModifier 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()
Methods in org.eclipse.persistence.internal.identitymaps with parameters of type IdentityMap -
Uses of IdentityMap in org.eclipse.persistence.internal.sessions
Methods in org.eclipse.persistence.internal.sessions that return IdentityMapModifier 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
Fields in org.eclipse.persistence.queries with type parameters of type IdentityMapModifier and TypeFieldDescriptionprotected Class
<? extends IdentityMap> QueryResultsCachePolicy.cacheType
Allows the identity map class type to be set.Methods in org.eclipse.persistence.queries that return types with arguments of type IdentityMapModifier and TypeMethodDescriptionClass
<? extends IdentityMap> QueryResultsCachePolicy.getCacheType()
PUBLIC: Return the type of the cache used for the query results.Method parameters in org.eclipse.persistence.queries with type arguments of type IdentityMapModifier 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
Fields in org.eclipse.persistence.sessions with type parameters of type IdentityMapModifier and TypeFieldDescriptionprotected Class
<? extends IdentityMap> Project.defaultIdentityMapClass
Default value for ClassDescriptor.identityMapClass.Methods in org.eclipse.persistence.sessions that return types with arguments of type IdentityMapModifier and TypeMethodDescriptionClass
<? extends IdentityMap> Project.getDefaultIdentityMapClass()
PUBLIC: Return default value for descriptor cache type.Method parameters in org.eclipse.persistence.sessions with type arguments of type IdentityMapModifier 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
Classes in org.eclipse.persistence.sessions.interceptors that implement IdentityMapModifier and TypeClassDescriptionclass
Purpose: Define a class through which Cache access can be intercepted.Fields in org.eclipse.persistence.sessions.interceptors declared as IdentityMapModifier and TypeFieldDescriptionprotected IdentityMap
CacheInterceptor.targetIdentityMap
This attribute stores the actual IdentityMap as configured by the user.Methods in org.eclipse.persistence.sessions.interceptors that return IdentityMapModifier and TypeMethodDescriptionCacheKeyInterceptor.getOwningMap()
CacheInterceptor.getTargetIdenttyMap()
Return the instance of the IdentityMap that this intercpetor is wrapping.Constructors in org.eclipse.persistence.sessions.interceptors with parameters of type IdentityMapModifierConstructorDescriptionprotected
CacheInterceptor
(IdentityMap targetIdentityMap, AbstractSession interceptedSession)