public class UnitOfWorkIdentityMapAccessor extends IdentityMapAccessor
identityMapManager, session
Constructor and Description |
---|
UnitOfWorkIdentityMapAccessor(AbstractSession session,
IdentityMapManager identityMapManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsObjectInIdentityMap(Vector primaryKey,
Class theClass,
ClassDescriptor descriptor)
INTERNAL:
Return if their is an object for the primary key.
|
Vector |
getAllFromIdentityMap(Expression selectionCriteria,
Class theClass,
AbstractRecord translationRow,
InMemoryQueryIndirectionPolicy valueHolderPolicy,
boolean shouldReturnInvalidatedObjects)
INTERNAL:
This method overrides the getAllFromIdentityMap method in Session.
|
protected Object |
getAndCloneCacheKeyFromParent(Vector primaryKey,
Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
This method will return the object from the parent and clone it.
|
Object |
getFromIdentityMap(Vector primaryKey,
Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor,
JoinedAttributeManager joinedAttributeManager)
INTERNAL:
Return the object from the identity map with the primary key and class.
|
Object |
getFromIdentityMapWithDeferredLock(Vector primaryKey,
Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor)
INTERNAL:
Overide the getFromIdentityMapWithDeferredLock method on the session to ensure that
invalidated objects are always returned since this is a UnitOfWork
|
void |
initializeAllIdentityMaps()
INTERNAL:
Reset the entire object cache,
** be careful using this.
|
acquireDeferredLock, acquireLock, acquireLock, acquireLockNoWait, acquireReadLockOnCacheKey, acquireReadLockOnCacheKeyNoWait, acquireWriteLock, clearQueryCache, clearQueryCache, clearQueryCache, clearQueryCache, containsKey, containsObjectInIdentityMap, containsObjectInIdentityMap, containsObjectInIdentityMap, extractPrimaryKeyFromRow, getAllFromIdentityMap, getAllFromIdentityMap, getAllFromIdentityMap, getCacheKeyForObject, getCacheKeyForObject, getClassesRegistered, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMapWithDeferredLock, getIdentityMap, getIdentityMap, getIdentityMapManager, getRemainingValidTime, getSession, getWrapper, getWriteLockManager, getWriteLockValue, getWriteLockValue, getWriteLockValue, initializeIdentityMap, initializeIdentityMaps, internalPutInIdentityMap, invalidateAll, invalidateClass, invalidateClass, invalidateObject, invalidateObject, invalidateObject, invalidateObjects, invalidateObjects, isValid, isValid, isValid, printIdentityMap, printIdentityMapLocks, printIdentityMaps, putInIdentityMap, putInIdentityMap, putInIdentityMap, putInIdentityMap, putInIdentityMap, releaseWriteLock, removeFromIdentityMap, removeFromIdentityMap, removeFromIdentityMap, setIdentityMapManager, setWrapper, updateWriteLockValue, updateWriteLockValue, validateCache
public UnitOfWorkIdentityMapAccessor(AbstractSession session, IdentityMapManager identityMapManager)
public boolean containsObjectInIdentityMap(Vector primaryKey, Class theClass, ClassDescriptor descriptor)
containsObjectInIdentityMap
in class IdentityMapAccessor
public Vector getAllFromIdentityMap(Expression selectionCriteria, Class theClass, AbstractRecord translationRow, InMemoryQueryIndirectionPolicy valueHolderPolicy, boolean shouldReturnInvalidatedObjects) throws QueryException
QueryException
public Object getFromIdentityMapWithDeferredLock(Vector primaryKey, Class theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor)
getFromIdentityMapWithDeferredLock
in class IdentityMapAccessor
public Object getFromIdentityMap(Vector primaryKey, Class theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor, JoinedAttributeManager joinedAttributeManager)
getFromIdentityMap
in class IdentityMapAccessor
protected Object getAndCloneCacheKeyFromParent(Vector primaryKey, Class theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor, JoinedAttributeManager joinedAttributeManager)
public void initializeAllIdentityMaps()
initializeAllIdentityMaps
in interface IdentityMapAccessor
initializeAllIdentityMaps
in class IdentityMapAccessor
Copyright © 2022. All rights reserved.