Module org.eclipse.persistence.core
Class SessionBrokerIdentityMapAccessor
java.lang.Object
org.eclipse.persistence.internal.sessions.IdentityMapAccessor
org.eclipse.persistence.internal.sessions.SessionBrokerIdentityMapAccessor
- All Implemented Interfaces:
Serializable
,IdentityMapAccessor
INTERNAL:
Subclass of IdentityMapAccessor for Session brokers
Overrides some identiy map initialization code
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.sessions.IdentityMapAccessor
identityMapManager, session
-
Constructor Summary
ConstructorsConstructorDescriptionSessionBrokerIdentityMapAccessor
(AbstractSession session, IdentityMapManager identityMapManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
INTERNAL: Reset the entire object cache.void
INTERNAL: Reset the entire local object caches.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, 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 Details
-
SessionBrokerIdentityMapAccessor
public SessionBrokerIdentityMapAccessor(AbstractSession session, IdentityMapManager identityMapManager)
-
-
Method Details
-
initializeAllIdentityMaps
public void initializeAllIdentityMaps()INTERNAL: 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
-
initializeIdentityMaps
public void initializeIdentityMaps()INTERNAL: Reset the entire local object caches. 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:
initializeIdentityMaps
in interfaceIdentityMapAccessor
- Overrides:
initializeIdentityMaps
in classIdentityMapAccessor
-