@Override public Query<T> select(String fetchProperties) { return query.select(fetchProperties); }
public Query<T> select(String fetchProperties) { return query.select(fetchProperties); }
public Query<T> select(String fetchProperties) { return query.select(fetchProperties); }
/** * Explicitly sets a comma delimited list of the properties to fetch on the 'main' entity bean, to load a partial object. */ public Query<T> select(String fetchProperties) { return query().select(fetchProperties); }
/** * 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 <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); } } }
/** * We need to create and execute a query to get the foreign key values as * the delete cascades to them (foreign keys). */ private Query<?> deleteRequiresQuery(BeanDescriptor<?> desc, BeanPropertyAssocOne<?>[] propImportDelete) { Query<?> q = server.createQuery(desc.getBeanType()); StringBuilder sb = new StringBuilder(30); for (int i = 0; i < propImportDelete.length; i++) { sb.append(propImportDelete[i].getName()).append(","); } q.setAutofetch(false); q.select(sb.toString()); return q; }
/** * We need to create and execute a query to get the foreign key values as * the delete cascades to them (foreign keys). */ private Query<?> deleteRequiresQuery(BeanDescriptor<?> desc, BeanPropertyAssocOne<?>[] propImportDelete) { Query<?> q = server.createQuery(desc.getBeanType()); StringBuilder sb = new StringBuilder(30); for (int i = 0; i < propImportDelete.length; i++) { sb.append(propImportDelete[i].getName()).append(","); } q.setAutofetch(false); q.select(sb.toString()); return q; }
/** * We need to create and execute a query to get the foreign key values as * the delete cascades to them (foreign keys). */ private Query<?> deleteRequiresQuery(BeanDescriptor<?> desc, BeanPropertyAssocOne<?>[] propImportDelete, boolean softDelete) { Query<?> q = server.createQuery(desc.getBeanType()); StringBuilder sb = new StringBuilder(30); for (BeanPropertyAssocOne<?> aPropImportDelete : propImportDelete) { sb.append(aPropImportDelete.getName()).append(","); } q.setAutoTune(false); q.select(sb.toString()); if (!softDelete) { // hard delete so we want this query to include logically deleted rows (if any) q.setIncludeSoftDeletes(); } return q; }
query.select(idNames).setId(id);
query.select(idNames).setId(id);
return find(type).select(idProp.getName()).setId(id).findUnique();