public class UnitOfWorkIdentityMapAccessor extends IdentityMapAccessor
| Constructor and Description |
|---|
UnitOfWorkIdentityMapAccessor() |
UnitOfWorkIdentityMapAccessor(AbstractSession session,
IdentityMapManager identityMapManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearQueryCache()
ADVANCED:
Clear all the query caches
|
void |
clearQueryCache(ReadQuery query)
ADVANCED:
Clear the query class associated with the passed-in read query
|
void |
clearQueryCache(java.lang.String sessionQueryName)
ADVANCED:
Clear the query cache associated with the named query on the session
|
void |
clearQueryCache(java.lang.String descriptorQueryName,
java.lang.Class queryClass)
ADVANCED:
Clear the query cache associated with the named query on the descriptor for the given class
|
boolean |
containsObjectInIdentityMap(java.lang.Object primaryKey,
java.lang.Class theClass,
ClassDescriptor descriptor)
INTERNAL:
Return if their is an object for the primary key.
|
java.util.Vector |
getAllFromIdentityMap(Expression selectionCriteria,
java.lang.Class theClass,
Record translationRow,
int valueHolderPolicy,
boolean shouldReturnInvalidatedObjects)
INTERNAL:
This method overrides the getAllFromIdentityMap method in Session.
|
java.lang.Object |
getFromIdentityMap(java.lang.Object primaryKey,
java.lang.Object object,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor)
INTERNAL:
Return the object from the identity map with the primary key and class.
|
java.lang.Object |
getFromIdentityMapWithDeferredLock(java.lang.Object primaryKey,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor)
INTERNAL:
Override the getFromIdentityMapWithDeferredLock method on the session to ensure that
invalidated objects are always returned since this is a UnitOfWork
|
java.lang.Object |
getQueryResult(ReadQuery query,
java.util.List parameters,
boolean checkExpiry)
INTERNAL:
Get the cached results associated with a query.
|
void |
initializeAllIdentityMaps()
INTERNAL:
Reset the entire object cache,
** be careful using this.
|
void |
invalidateQueryCache(java.lang.Class classThatChanged)
Invalidate/remove any results for the class from the query cache.
|
void |
putQueryResult(ReadQuery query,
java.util.List parameters,
java.lang.Object results)
INTERNAL:
Set the results for a query.
|
acquireDeferredLock, acquireLock, acquireLock, acquireLockNoWait, acquireLockWithWait, acquireReadLockOnCacheKey, acquireReadLockOnCacheKeyNoWait, acquireWriteLock, containsObjectInIdentityMap, containsObjectInIdentityMap, containsObjectInIdentityMap, containsObjectInIdentityMap, getAllCacheKeysFromIdentityMapWithEntityPK, getAllFromIdentityMap, getAllFromIdentityMap, getAllFromIdentityMap, getAllFromIdentityMap, getAllFromIdentityMapWithEntityPK, getCacheKeyByIndex, getCacheKeyForObject, getCacheKeyForObject, getCacheKeyForObject, getCacheKeyForObjectForLock, getClassesRegistered, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMap, getFromIdentityMapWithDeferredLock, getFromLocalIdentityMap, getFromLocalIdentityMapWithDeferredLock, getIdentityMap, getIdentityMap, getIdentityMap, getIdentityMapManager, getRemainingValidTime, getSession, getWrapper, getWriteLockManager, getWriteLockValue, getWriteLockValue, getWriteLockValue, getWriteLockValue, initializeIdentityMap, initializeIdentityMaps, internalPutInIdentityMap, invalidateAll, invalidateClass, invalidateClass, invalidateObject, invalidateObject, invalidateObject, invalidateObject, invalidateObject, invalidateObject, invalidateObject, invalidateObject, invalidateObjects, invalidateObjects, invalidateObjects, invalidateObjects, isValid, isValid, isValid, isValid, primaryKeyFromVector, printIdentityMap, printIdentityMapLocks, printIdentityMaps, putCacheKeyByIndex, putInIdentityMap, putInIdentityMap, putInIdentityMap, putInIdentityMap, putInIdentityMap, putInIdentityMap, putInIdentityMap, putInIdentityMap, releaseWriteLock, removeFromIdentityMap, removeFromIdentityMap, removeFromIdentityMap, removeFromIdentityMap, setIdentityMapManager, setWrapper, updateWriteLockValue, updateWriteLockValue, updateWriteLockValue, validateCachepublic UnitOfWorkIdentityMapAccessor()
public UnitOfWorkIdentityMapAccessor(AbstractSession session, IdentityMapManager identityMapManager)
public void clearQueryCache()
clearQueryCache in interface IdentityMapAccessorclearQueryCache in class IdentityMapAccessorpublic void invalidateQueryCache(java.lang.Class classThatChanged)
invalidateQueryCache in interface IdentityMapAccessorinvalidateQueryCache in class IdentityMapAccessorpublic void clearQueryCache(ReadQuery query)
clearQueryCache in interface IdentityMapAccessorclearQueryCache in class IdentityMapAccessorpublic void clearQueryCache(java.lang.String sessionQueryName)
clearQueryCache in interface IdentityMapAccessorclearQueryCache in class IdentityMapAccessorpublic void clearQueryCache(java.lang.String descriptorQueryName,
java.lang.Class queryClass)
clearQueryCache in interface IdentityMapAccessorclearQueryCache in class IdentityMapAccessorpublic boolean containsObjectInIdentityMap(java.lang.Object primaryKey,
java.lang.Class theClass,
ClassDescriptor descriptor)
containsObjectInIdentityMap in class IdentityMapAccessorpublic java.util.Vector getAllFromIdentityMap(Expression selectionCriteria, java.lang.Class theClass, Record translationRow, int valueHolderPolicy, boolean shouldReturnInvalidatedObjects) throws QueryException
getAllFromIdentityMap in interface IdentityMapAccessorgetAllFromIdentityMap in class IdentityMapAccessorselectionCriteria - Expression selecting the Objects to be returnedtheClass - Class to be consideredtranslationRow - RecordvalueHolderPolicy - see
InMemoryQueryIndirectionPolicyshouldReturnInvalidatedObjects - boolean - true if only invalid Objects should be returnedQueryExceptionpublic java.lang.Object getFromIdentityMapWithDeferredLock(java.lang.Object primaryKey,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor)
getFromIdentityMapWithDeferredLock in class IdentityMapAccessorpublic java.lang.Object getFromIdentityMap(java.lang.Object primaryKey,
java.lang.Object object,
java.lang.Class theClass,
boolean shouldReturnInvalidatedObjects,
ClassDescriptor descriptor)
getFromIdentityMap in class IdentityMapAccessorpublic java.lang.Object getQueryResult(ReadQuery query, java.util.List parameters, boolean checkExpiry)
getQueryResult in class IdentityMapAccessorpublic void putQueryResult(ReadQuery query, java.util.List parameters, java.lang.Object results)
putQueryResult in class IdentityMapAccessorpublic void initializeAllIdentityMaps()
initializeAllIdentityMaps in interface IdentityMapAccessorinitializeAllIdentityMaps in class IdentityMapAccessorEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference