@Override public boolean hasItems() { return wrappedFetchGroup.hasItems(); }
public EntityFetchGroup(FetchGroup fetchGroup) { super(fetchGroup.getName()); if(fetchGroup.hasItems()) { Iterator<String> it = fetchGroup.getItems().keySet().iterator(); while(it.hasNext()) { super.addAttribute(it.next(), (AttributeGroup)null); } } }
public EntityFetchGroup(FetchGroup fetchGroup) { super(fetchGroup.getName()); if(fetchGroup.hasItems()) { Iterator<String> it = fetchGroup.getItems().keySet().iterator(); while(it.hasNext()) { super.addAttribute(it.next(), (AttributeGroup)null); } } }
public EntityFetchGroup(FetchGroup fetchGroup, String attributeName) { super(fetchGroup.getName() + "+" + attributeName); if(fetchGroup.hasItems()) { Iterator<String> it = fetchGroup.getItems().keySet().iterator(); while(it.hasNext()) { super.addAttribute(it.next(), (AttributeGroup)null); } } super.addAttribute(attributeName, (AttributeGroup)null); }
public EntityFetchGroup(FetchGroup fetchGroup, String attributeName) { super(fetchGroup.getName() + "+" + attributeName); if(fetchGroup.hasItems()) { Iterator<String> it = fetchGroup.getItems().keySet().iterator(); while(it.hasNext()) { super.addAttribute(it.next(), (AttributeGroup)null); } } super.addAttribute(attributeName, (AttributeGroup)null); }
/** * 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); } } } }