Tidy DLoadContext only

This commit is contained in:
Rob Bygrave committed 2022-07-27 22:28:15 +12:00
1 parent 31c20ca9a2
commit 3c2b5f253f
1 file changed
+5 -5
@@ -234,7 +234,7 @@ public final class DLoadContext implements LoadContext {
} }
} }
protected SpiEbeanServer getEbeanServer() { SpiEbeanServer getEbeanServer() {
return ebeanServer; return ebeanServer;
} }
@@ -242,7 +242,7 @@ public final class DLoadContext implements LoadContext {
* Return the parent state which defines the sharedInstance and readOnly status * Return the parent state which defines the sharedInstance and readOnly status
* which needs to be propagated to other beans and collections. * which needs to be propagated to other beans and collections.
*/ */
protected Boolean isReadOnly() { Boolean isReadOnly() {
return readOnly; return readOnly;
} }
@@ -283,7 +283,7 @@ public final class DLoadContext implements LoadContext {
DLoadBeanContext getBeanContextWithInherit(String path, BeanPropertyAssocOne<?> property) { DLoadBeanContext getBeanContextWithInherit(String path, BeanPropertyAssocOne<?> property) {
String key = path + ":" + property.targetDescriptor().name(); String key = path + ":" + property.targetDescriptor().name();
return beanMap.computeIfAbsent(key, p -> createBeanContext(property, path, null)); return beanMap.computeIfAbsent(key, p -> createBeanContext(property, path));
} }
private void registerSecondaryNode(boolean many, OrmQueryProperties props) { private void registerSecondaryNode(boolean many, OrmQueryProperties props) {
@@ -313,8 +313,8 @@ public final class DLoadContext implements LoadContext {
return new DLoadBeanContext(this, p.targetDescriptor(), path, queryProps); return new DLoadBeanContext(this, p.targetDescriptor(), path, queryProps);
} }
private DLoadBeanContext createBeanContext(BeanPropertyAssoc<?> property, String path, OrmQueryProperties queryProps) { private DLoadBeanContext createBeanContext(BeanPropertyAssoc<?> property, String path) {
return new DLoadBeanContext(this, property.targetDescriptor(), path, queryProps); return new DLoadBeanContext(this, property.targetDescriptor(), path, null);
} }
private BeanProperty getBeanProperty(BeanDescriptor<?> desc, String path) { private BeanProperty getBeanProperty(BeanDescriptor<?> desc, String path) {