targetQuery.setShouldMaintainCache(sourceQuery.shouldMaintainCache());
targetQuery.setShouldMaintainCache(query.shouldMaintainCache());
targetQuery.setShouldMaintainCache(sourceQuery.shouldMaintainCache());
targetQuery.setShouldMaintainCache(sourceQuery.shouldMaintainCache());
targetQuery.setShouldMaintainCache(query.shouldMaintainCache());
targetQuery.setShouldMaintainCache(query.shouldMaintainCache());
query.setShouldRefreshIdentityMapResult(sourceQuery.shouldRefreshIdentityMapResult()); query.setCascadePolicy(sourceQuery.getCascadePolicy()); query.setShouldMaintainCache(sourceQuery.shouldMaintainCache());
try { if (query.shouldMaintainCache() && (!query.shouldRetrieveBypassCache() || !query.shouldStoreBypassCache())) { cacheKey = session.retrieveCacheKey(primaryKey, concreteDescriptor, joinManager, query); protectedObject = cacheKey.getObject(); if (query.shouldMaintainCache() && ! query.shouldStoreBypassCache()){ if (domainWasMissing) { // may have build a new domain even though there is one in the cache cacheKey.setObject(protectedObject); if (query.shouldMaintainCache() && ! query.shouldStoreBypassCache()) { if (preFetchedCacheKey == null){ sharedCacheKey = session.getParent().retrieveCacheKey(primaryKey, concreteDescriptor, joinManager, query); if (query.shouldMaintainCache() && ! query.shouldStoreBypassCache()) { if (query.shouldMaintainCache()){ if (cacheKey != null) {
try { if (query.shouldMaintainCache() && (!query.shouldRetrieveBypassCache() || !query.shouldStoreBypassCache())) { cacheKey = session.retrieveCacheKey(primaryKey, concreteDescriptor, joinManager, query); protectedObject = cacheKey.getObject(); if (query.shouldMaintainCache() && ! query.shouldStoreBypassCache()){ if (domainWasMissing) { // may have build a new domain even though there is one in the cache cacheKey.setObject(protectedObject); if (query.shouldMaintainCache() && ! query.shouldStoreBypassCache()) { if (preFetchedCacheKey == null){ sharedCacheKey = session.getParent().retrieveCacheKey(primaryKey, concreteDescriptor, joinManager, query); if (query.shouldMaintainCache() && ! query.shouldStoreBypassCache()) { if (query.shouldMaintainCache()){ if (cacheKey != null) {
nestedQuery.setShouldMaintainCache(baseQuery.shouldMaintainCache()); nestedQuery.setShouldRefreshIdentityMapResult(baseQuery.shouldRefreshIdentityMapResult());
&& !refreshing && sourceQuery.shouldMaintainCache() && !sourceQuery.shouldStoreBypassCache()) {
&& sourceQuery.shouldMaintainCache() && !sourceQuery.shouldStoreBypassCache()) {
nestedQuery.setShouldMaintainCache(baseQuery.shouldMaintainCache()); nestedQuery.setShouldRefreshIdentityMapResult(baseQuery.shouldRefreshIdentityMapResult());
nestedQuery.setShouldMaintainCache(baseQuery.shouldMaintainCache()); nestedQuery.setShouldRefreshIdentityMapResult(baseQuery.shouldRefreshIdentityMapResult());
targetQuery.setShouldMaintainCache(sourceQuery.shouldMaintainCache());
query.setShouldRefreshIdentityMapResult(sourceQuery.shouldRefreshIdentityMapResult()); query.setCascadePolicy(sourceQuery.getCascadePolicy()); query.setShouldMaintainCache(sourceQuery.shouldMaintainCache());
query.setShouldRefreshIdentityMapResult(sourceQuery.shouldRefreshIdentityMapResult()); query.setCascadePolicy(sourceQuery.getCascadePolicy()); query.setShouldMaintainCache(sourceQuery.shouldMaintainCache());
boolean shouldMaintainCache = query.shouldMaintainCache(); ObjectBuilder concreteObjectBuilder = concreteDescriptor.getObjectBuilder(); try {
targetQuery.setShouldMaintainCache(sourceQuery.shouldMaintainCache());
targetQuery.setShouldMaintainCache(sourceQuery.shouldMaintainCache());