| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | checkForInheritance(Object domainObject, Class<?> superClass, ClassDescriptor descriptor)
This method is used to resolve the inheritance issues arise while trying to get object from identity map of parent session. |
| public void | clearQueryCache()
Overrides org. Implements org. |
| public void | clearQueryCache(ReadQuery query)
Overrides org. Implements org. |
| public void | clearQueryCache(String sessionQueryName)
Overrides org. Implements org. |
| public void | clearQueryCache(String descriptorQueryName, Class<?> queryClass)
Overrides org. Implements org. |
| public boolean | containsObjectInIdentityMap(Object primaryKey, Class<?> theClass, ClassDescriptor descriptor)
Overrides org. |
| public Vector | getAllFromIdentityMap(Expression
Expression selecting the Objects to be returned selectionCriteria, Class<?> Class to be considered theClass, DataRecord Record translationRow, int valueHolderPolicy, boolean boolean - true if only invalid Objects should be returned shouldReturnInvalidatedObjects)Overrides org. Implements org. |
| protected Object | getAndCloneCacheKeyFromParent(Object primaryKey, Object objectToClone, Class<?> theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor)
INTERNAL: This method will return the object from the parent and clone it. |
| public Object | getFromIdentityMap(Object primaryKey, Object object, Class<?> theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor)
Overrides org. |
| public Object | getFromIdentityMapWithDeferredLock(Object primaryKey, Class<?> theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor)
Overrides org. |
| public Object | getQueryResult(ReadQuery query, List<E> parameters, boolean checkExpiry)
Overrides org. |
| public void | initializeAllIdentityMaps()
Overrides org. Implements org. |
| public void | invalidateQueryCache(Class<?> classThatChanged)
Overrides org. Implements org. |
| public void | putQueryResult(ReadQuery query, List<E> parameters, Object results)
Overrides org. |
| UnitOfWorkIdentityMapAccessor | back to summary |
|---|---|
| public UnitOfWorkIdentityMapAccessor() | |
| UnitOfWorkIdentityMapAccessor | back to summary |
|---|---|
| public UnitOfWorkIdentityMapAccessor(AbstractSession session, IdentityMapManager identityMapManager) | |
| checkForInheritance | back to summary |
|---|---|
| protected Object checkForInheritance(Object domainObject, Class<?> superClass, ClassDescriptor descriptor) This method is used to resolve the inheritance issues arise while trying to get object from identity map of parent session. Avoid reading the unintended subclass during in-memory query (e.g. when querying on large project, do not want to check small project, both are inherited from the project, and stored in the same identity map). | |
| clearQueryCache | back to summary |
|---|---|
| public void clearQueryCache() Overrides org. Implements org. ADVANCED: Clear all the query caches
| |
| clearQueryCache | back to summary |
|---|---|
| public void clearQueryCache(ReadQuery query) Overrides org. Implements org. ADVANCED: Clear the query class associated with the passed-in read query
| |
| clearQueryCache | back to summary |
|---|---|
| public void clearQueryCache(String sessionQueryName) Overrides org. Implements org. ADVANCED: Clear the query cache associated with the named query on the session
| |
| clearQueryCache | back to summary |
|---|---|
| public void clearQueryCache(String descriptorQueryName, Class<?> queryClass) Overrides org. Implements org. ADVANCED: Clear the query cache associated with the named query on the descriptor for the given class
| |
| containsObjectInIdentityMap | back to summary |
|---|---|
| public boolean containsObjectInIdentityMap(Object primaryKey, Class<?> theClass, ClassDescriptor descriptor) Overrides org. INTERNAL: Return if their is an object for the primary key.
| |
| getAllFromIdentityMap | back to summary |
|---|---|
| public Vector Overrides org. Implements org. INTERNAL: This method overrides the getAllFromIdentityMap method in Session. Invalidated Objects will always be returned from a UnitOfWork.
| |
| getAndCloneCacheKeyFromParent | back to summary |
|---|---|
| protected Object getAndCloneCacheKeyFromParent(Object primaryKey, Object objectToClone, Class<?> theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor) INTERNAL: This method will return the object from the parent and clone it. | |
| getFromIdentityMap | back to summary |
|---|---|
| public Object getFromIdentityMap(Object primaryKey, Object object, Class<?> theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor) Overrides org. INTERNAL: Return the object from the identity map with the primary key and class. The parent's cache must be checked after the child's, if found in the parent, it must be registered/cloned (but must avoid looping). Note in a UnitOfWork, invalidated objects will always be returned from the identity map In the parent session, only return the object if it has not been Invalidated
| |
| getFromIdentityMapWithDeferredLock | back to summary |
|---|---|
| public Object getFromIdentityMapWithDeferredLock(Object primaryKey, Class<?> theClass, boolean shouldReturnInvalidatedObjects, ClassDescriptor descriptor) Overrides org. INTERNAL: Override the getFromIdentityMapWithDeferredLock method on the session to ensure that invalidated objects are always returned since this is a UnitOfWork
| |
| getQueryResult | back to summary |
|---|---|
| public Object getQueryResult(ReadQuery query, List<E> parameters, boolean checkExpiry) Overrides org. INTERNAL: Get the cached results associated with a query. Results are cached by the values of the parameters to the query so different parameters will have different cached results. results are only cached in the parent session for UnitOfWorks
| |
| initializeAllIdentityMaps | back to summary |
|---|---|
| public void initializeAllIdentityMaps() Overrides org. Implements org. INTERNAL: Reset the entire object cache, ** be careful using this. This method blows away both this session's and its parents caches, this includes 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.
| |
| invalidateQueryCache | back to summary |
|---|---|
| public void invalidateQueryCache(Class<?> classThatChanged) Overrides org. Implements org. Invalidate/remove any results for the class from the query cache. This is used to invalidate the query cache on any change.
| |
| putQueryResult | back to summary |
|---|---|
| public void putQueryResult(ReadQuery query, List<E> parameters, Object results) Overrides org. INTERNAL: Set the results for a query. Query results are cached based on the parameter values provided to the query different parameter values access different caches. Results are only cached in the parent session for UnitOfWorks
| |