Module org.eclipse.persistence.core
Class ClientSessionIdentityMapAccessor
java.lang.Object
org.eclipse.persistence.internal.sessions.IdentityMapAccessor
org.eclipse.persistence.internal.sessions.ClientSessionIdentityMapAccessor
- All Implemented Interfaces:
Serializable
,IdentityMapAccessor
INTERNAL:
IdentityMapAccessor subclass for client sessions.
Note: A client session will always use it's parent session's IdentityMapManager
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.sessions.IdentityMapAccessor
identityMapManager, session
-
Constructor Summary
ConstructorsConstructorDescriptionINTERNAL: Create a ClientSessionIdentityMapAccessor Since the parent session's identity map manager is used, an IdentityMapManager does not need to be supplied to the constructor -
Method Summary
Modifier and TypeMethodDescriptionINTERNAL: Return the IdentityMapManager for the client session.void
INTERNAL: Was PUBLIC: customer will be redirected toSession
.void
initializeIdentityMap
(Class<?> theClass) INTERNAL: The client session does not have a local identity map, so this has no effect and should not be used.void
INTERNAL: The client session does not have a local identity map, so this has no effect and should not be used.void
setIdentityMapManager
(IdentityMapManager identityMapManager) INTERNAL: The identity map manager cannot be set on a client session since it looks at it's parent session's identity map manager.Methods inherited from class org.eclipse.persistence.internal.sessions.IdentityMapAccessor
acquireDeferredLock, acquireLock, acquireLock, acquireLockNoWait, acquireLockWithWait, acquireReadLockOnCacheKey, acquireReadLockOnCacheKeyNoWait, acquireWriteLock, clearQueryCache, clearQueryCache, clearQueryCache, clearQueryCache, containsObjectInIdentityMap, containsObjectInIdentityMap, containsObjectInIdentityMap, containsObjectInIdentityMap, extractPrimaryKeyFromRow, getAllCacheKeysFromIdentityMapWithEntityPK, getAllFromIdentityMap, getAllFromIdentityMap, getAllFromIdentityMap, getAllFromIdentityMap, getAllFromIdentityMap, getAllFromIdentityMapWithEntityPK, getCacheKeyByIndex, getCacheKeyForObject, getCacheKeyForObject, getCacheKeyForObject, getCacheKeyForObjectForLock, getClassesRegistered, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMapWithDeferredLock, getFromIdentityMapWithDeferredLock, getFromLocalIdentityMap, getFromLocalIdentityMapWithDeferredLock, getIdentityMap, getIdentityMap, getIdentityMap, getQueryResult, getRemainingValidTime, getSession, getWrapper, getWriteLockManager, getWriteLockValue, getWriteLockValue, getWriteLockValue, internalPutInIdentityMap, invalidateAll, invalidateClass, invalidateClass, invalidateObject, invalidateObject, invalidateObject, invalidateObject, invalidateObject, invalidateObject, invalidateObjects, invalidateObjects, invalidateObjects, invalidateObjects, invalidateQueryCache, isValid, isValid, isValid, printIdentityMap, printIdentityMapLocks, printIdentityMaps, putCacheKeyByIndex, putInIdentityMap, putInIdentityMap, putInIdentityMap, putInIdentityMap, putInIdentityMap, putQueryResult, releaseWriteLock, removeFromIdentityMap, removeFromIdentityMap, removeFromIdentityMap, setWrapper, updateWriteLockValue, updateWriteLockValue, validateCache
-
Constructor Details
-
ClientSessionIdentityMapAccessor
INTERNAL: Create a ClientSessionIdentityMapAccessor Since the parent session's identity map manager is used, an IdentityMapManager does not need to be supplied to the constructor
-
-
Method Details
-
initializeAllIdentityMaps
public void initializeAllIdentityMaps()INTERNAL: Was PUBLIC: customer will be redirected toSession
. Reset the entire object cache. This method blows away both this session's and its parents caches, including the server cache or any other cache. This throws away any objects that have been read in. Extreme caution should be used before doing this because object identity will no longer be maintained for any objects currently read in. This should only be called if the application knows that it no longer has references to object held in the cache.- Specified by:
initializeAllIdentityMaps
in interfaceIdentityMapAccessor
- Overrides:
initializeAllIdentityMaps
in classIdentityMapAccessor
-
getIdentityMapManager
INTERNAL: Return the IdentityMapManager for the client session. This overrides the IdentityMapAccessor version of getIdentityMapManager to return the parent session's IdentityMapManager- Overrides:
getIdentityMapManager
in classIdentityMapAccessor
-
initializeIdentityMap
INTERNAL: The client session does not have a local identity map, so this has no effect and should not be used.- Specified by:
initializeIdentityMap
in interfaceIdentityMapAccessor
- Overrides:
initializeIdentityMap
in classIdentityMapAccessor
- Parameters:
theClass
- Class
-
initializeIdentityMaps
public void initializeIdentityMaps()INTERNAL: The client session does not have a local identity map, so this has no effect and should not be used.- Specified by:
initializeIdentityMaps
in interfaceIdentityMapAccessor
- Overrides:
initializeIdentityMaps
in classIdentityMapAccessor
-
setIdentityMapManager
INTERNAL: The identity map manager cannot be set on a client session since it looks at it's parent session's identity map manager.- Overrides:
setIdentityMapManager
in classIdentityMapAccessor
-