@Override public void setShouldLoad(boolean shouldLoad) { wrappedFetchGroup.setShouldLoad(shouldLoad); }
/** * Configure this group to also act as a {@link LoadGroup} the same as * {@link #setShouldLoad(boolean)}. Additionally this method will apply the * provided boolean value to all nested groups already added. * * @see #setShouldLoad(boolean) to only configure this grup without * effecting existing nested groups. */ public void setShouldLoadAll(boolean shouldLoad) { this.setShouldLoad(shouldLoad); if(this.hasItems()) { Iterator<Map.Entry<String, AttributeItem>> it = getItems().entrySet().iterator(); while(it.hasNext()) { Map.Entry<String, AttributeItem> entry = it.next(); FetchGroup group = (FetchGroup)entry.getValue().getGroup(); if(group != null) { group.setShouldLoadAll(shouldLoad); } } } }
/** * Configure this group to also act as a {@link LoadGroup} the same as * {@link #setShouldLoad(boolean)}. Additionally this method will apply the * provided boolean value to all nested groups already added. * * @see #setShouldLoad(boolean) to only configure this grup without * effecting existing nested groups. */ public void setShouldLoadAll(boolean shouldLoad) { this.setShouldLoad(shouldLoad); if(this.hasItems()) { Iterator<Map.Entry<String, AttributeItem>> it = getItems().entrySet().iterator(); while(it.hasNext()) { Map.Entry<String, AttributeItem> entry = it.next(); FetchGroup group = (FetchGroup)entry.getValue().getGroup(); if(group != null) { group.setShouldLoadAll(shouldLoad); } } } }
/** * Configure this group to also act as a {@link LoadGroup} when set to true * and load all of the specified relationships so that the entities returned * from the query where this group was used have the requested relationships * populated. All subsequent attributes added to this group that create a * nested group will have this value applied to them. * * @see #setShouldLoadAll(boolean) to configure {@link #shouldLoad()} on * nested groups */ public void setShouldLoad(boolean shouldLoad) { this.shouldLoad = shouldLoad; if (this.superClassGroup != null){ ((FetchGroup)this.superClassGroup).setShouldLoad(shouldLoad); }else{ setSubclassShouldLoad(shouldLoad); } }
/** * Configure this group to also act as a {@link LoadGroup} when set to true * and load all of the specified relationships so that the entities returned * from the query where this group was used have the requested relationships * populated. All subsequent attributes added to this group that create a * nested group will have this value applied to them. * * @see #setShouldLoadAll(boolean) to configure {@link #shouldLoad()} on * nested groups */ public void setShouldLoad(boolean shouldLoad) { this.shouldLoad = shouldLoad; if (this.superClassGroup != null){ ((FetchGroup)this.superClassGroup).setShouldLoad(shouldLoad); }else{ setSubclassShouldLoad(shouldLoad); } }
@Override protected FetchGroup newGroup(String name, CoreAttributeGroup parent) { FetchGroup fetchGroup = new FetchGroup(name); if(parent != null) { fetchGroup.setShouldLoad(((FetchGroup)parent).shouldLoad()); } return fetchGroup; }
@Override protected FetchGroup newGroup(String name, CoreAttributeGroup parent) { FetchGroup fetchGroup = new FetchGroup(name); if(parent != null) { fetchGroup.setShouldLoad(((FetchGroup)parent).shouldLoad()); } return fetchGroup; }