Class ClientSessionIdentityMapAccessor
- java.lang.Object
-
- org.eclipse.persistence.internal.sessions.IdentityMapAccessor
-
- org.eclipse.persistence.internal.sessions.ClientSessionIdentityMapAccessor
-
- All Implemented Interfaces:
Serializable
,IdentityMapAccessor
public class ClientSessionIdentityMapAccessor extends IdentityMapAccessor
INTERNAL: IdentityMapAccessor subclass for client sessions. Note: A client session will always use it's parent session's IdentityMapManager- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.sessions.IdentityMapAccessor
identityMapManager, session
-
-
Constructor Summary
Constructors Constructor Description ClientSessionIdentityMapAccessor(ClientSession session)
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentityMapManager
getIdentityMapManager()
INTERNAL: Return the IdentityMapManager for the client session.void
initializeAllIdentityMaps()
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
initializeIdentityMaps()
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 Detail
-
ClientSessionIdentityMapAccessor
public ClientSessionIdentityMapAccessor(ClientSession session)
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 Detail
-
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
public IdentityMapManager 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
public 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.- 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
public 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.- Overrides:
setIdentityMapManager
in classIdentityMapAccessor
-
-