Merge AutoTune refactor with master

This commit is contained in:
Robin Bygrave committed 2015-09-10 10:27:24 +12:00
commit 262d52ed44
82 files changed
+2538 -2910

No files matched your search

@@ -61,7 +61,7 @@ public class DLoadBeanContext extends DLoadBaseContext implements LoadBeanContex
if (queryProps != null) {
queryProps.configureBeanQuery(query);
}
if (parent.isUseAutofetchManager()) {
if (parent.isUseAutoTune()) {
query.setAutofetch(true);
}
}
@@ -48,7 +48,7 @@ public class DLoadContext implements LoadContext {
*/
private final String relativePath;
private final ObjectGraphOrigin origin;
private final boolean useAutofetchManager;
private final boolean useProfiling;
private final Map<String, ObjectGraphNode> nodePathMap = new HashMap<String, ObjectGraphNode>();
@@ -69,7 +69,7 @@ public class DLoadContext implements LoadContext {
this.disableReadAudit = query.isDisableReadAudit();
this.disableLazyLoading = query.isDisableLazyLoading();
this.excludeBeanCache = Boolean.FALSE.equals(query.isUseBeanCache());
this.useAutofetchManager = query.getAutoFetchManager() != null;
this.useProfiling = query.getProfilingListener() != null;
ObjectGraphNode parentNode = query.getParentNode();
if (parentNode != null) {
@@ -199,8 +199,8 @@ public class DLoadContext implements LoadContext {
return new ObjectGraphNode(origin, path);
}
public boolean isUseAutofetchManager() {
return useAutofetchManager;
public boolean isUseAutoTune() {
return useProfiling;
}
protected String getFullPath(String path) {
@@ -73,7 +73,7 @@ public class DLoadManyContext extends DLoadBaseContext implements LoadManyContex
queryProps.configureBeanQuery(query);
}
if (parent.isUseAutofetchManager()) {
if (parent.isUseAutoTune()) {
query.setAutofetch(true);
}
}