public DefaultOrmQuery<T> fetch(String property, String columns, FetchConfig config) { detail.addFetch(property, columns, config); return this; }
public DefaultOrmQuery<T> fetch(String property, String columns, FetchConfig config) { detail.addFetch(property, columns, config); return this; }
public OrmQueryDetail buildTunedFetch(BeanDescriptor<?> rootDesc){ synchronized (monitor) { if (nodeUsageMap.isEmpty()){ return null; } PathProperties pathProps = new PathProperties(); Iterator<StatisticsNodeUsage> it = nodeUsageMap.values().iterator(); while (it.hasNext()) { StatisticsNodeUsage statsNode = it.next(); statsNode.buildTunedFetch(pathProps, rootDesc); } OrmQueryDetail detail = new OrmQueryDetail(); Collection<Props> pathProperties = pathProps.getPathProps(); for (Props props : pathProperties) { if (!props.isEmpty()){ detail.addFetch(props.getPath(), props.getPropertiesAsString(), null); } } detail.sortFetchPaths(rootDesc); return detail; } }
public OrmQueryDetail buildTunedFetch(BeanDescriptor<?> rootDesc){ synchronized (monitor) { if (nodeUsageMap.isEmpty()){ return null; } PathProperties pathProps = new PathProperties(); Iterator<StatisticsNodeUsage> it = nodeUsageMap.values().iterator(); while (it.hasNext()) { StatisticsNodeUsage statsNode = it.next(); statsNode.buildTunedFetch(pathProps, rootDesc); } OrmQueryDetail detail = new OrmQueryDetail(); Collection<Props> pathProperties = pathProps.getPathProps(); for (Props props : pathProperties) { if (!props.isEmpty()){ detail.addFetch(props.getPath(), props.getPropertiesAsString(), null); } } detail.sortFetchPaths(rootDesc); return detail; } }