Class DistributedSessionIdentityMapAccessor
- java.lang.Object
-
- org.eclipse.persistence.internal.sessions.IdentityMapAccessor
-
- org.eclipse.persistence.internal.sessions.DistributedSessionIdentityMapAccessor
-
- All Implemented Interfaces:
Serializable
,IdentityMapAccessor
public class DistributedSessionIdentityMapAccessor extends IdentityMapAccessor
INTERNAL: Subclass of IdentityMapAccessor for distributed sessions Overrides some IdentityMapInitialization code- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.sessions.IdentityMapAccessor
identityMapManager, session
-
-
Constructor Summary
Constructors Constructor Description DistributedSessionIdentityMapAccessor(AbstractSession session, IdentityMapManager identityMapManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initializeAllIdentityMaps()
Reset the entire object cache.void
initializeIdentityMapsOnServerSession()
INTERNAL: Flushes the server side cache, because the server cache may be shared, caution should be used in calling this.-
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, getIdentityMapManager, getQueryResult, getRemainingValidTime, getSession, getWrapper, getWriteLockManager, getWriteLockValue, getWriteLockValue, getWriteLockValue, initializeIdentityMap, initializeIdentityMaps, 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, setIdentityMapManager, setWrapper, updateWriteLockValue, updateWriteLockValue, validateCache
-
-
-
-
Constructor Detail
-
DistributedSessionIdentityMapAccessor
public DistributedSessionIdentityMapAccessor(AbstractSession session, IdentityMapManager identityMapManager)
-
-
Method Detail
-
initializeAllIdentityMaps
public void initializeAllIdentityMaps()
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. Extream 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
-
initializeIdentityMapsOnServerSession
public void initializeIdentityMapsOnServerSession()
INTERNAL: Flushes the server side cache, because the server cache may be shared, caution should be used in calling this.
-
-