public Query<T> join(String assocProperty, String assocProperties) { return query.fetch(assocProperty, assocProperties); }
public Query<T> join(String assocProperties) { return query.fetch(assocProperties); }
public Query<T> join(String assocProperties) { return query.fetch(assocProperties); }
public Query<T> join(String assocProperty, String assocProperties) { return query.fetch(assocProperty, assocProperties); }
/** * Additionally specifies a <code>JoinConfig</code> to specify a 'query join' and/or define the lazy loading query. */ public Query<T> fetch(String path, FetchConfig joinConfig) { return query().fetch(path, joinConfig); }
/** * Specifies a path to load including all its properties. */ public Query<T> fetch(String path) { return query().fetch(path); }
/** * Specifies a path to fetch with a specific list properties to include, to load a partial object. */ public Query<T> fetch(String path, String fetchProperties) { return query().fetch(path, fetchProperties); }
/** * Additionally specifies a <code>FetchConfig</code> to use a separate query or lazy loading to load this path. */ public Query<T> fetch(String assocProperty, String fetchProperties, FetchConfig fetchConfig) { return query().fetch(assocProperty, fetchProperties, fetchConfig); }
/** * Apply these path properties as fetch paths to the query. */ public <T> void apply(Query<T> query) { for (Entry<String, Props> entry : pathMap.entrySet()) { String path = entry.getKey(); String props = entry.getValue().getPropertiesAsString(); if (path == null || path.isEmpty()) { query.select(props); } else { query.fetch(path, props); } } }
/** * Apply these path properties as fetch paths to the query. */ public void apply(Query<?> query) { for (Entry<String, Props> entry : pathMap.entrySet()) { String path = entry.getKey(); String props = entry.getValue().getPropertiesAsString(); if (path == null || path.length() == 0) { query.select(props); } else { query.fetch(path, props); } } }
/** * Apply these path properties as fetch paths to the query. */ public void apply(Query<?> query) { for (Entry<String, Props> entry : pathMap.entrySet()) { String path = entry.getKey(); String props = entry.getValue().getPropertiesAsString(); if (path == null || path.length() == 0) { query.select(props); } else { query.fetch(path, props); } } }
/** * Fetch draftable element relationships. */ public void draftQueryOptimise(Query<T> query) { BeanPropertyAssocOne<?>[] one = desc.propertiesOne(); for (BeanPropertyAssocOne<?> anOne : one) { if (anOne.getTargetDescriptor().isDraftableElement()) { query.fetch(anOne.getName()); } } BeanPropertyAssocMany<?>[] many = desc.propertiesMany(); for (BeanPropertyAssocMany<?> aMany : many) { if (aMany.getTargetDescriptor().isDraftableElement()) { query.fetch(aMany.getName()); } } } }