Internal SpiQuery : remove unused lazyLoadForParentsIds

This commit is contained in:
Robin Bygrave
2015-07-20 12:47:09 +12:00
parent 0d848e9311
commit 936e56835c
4 changed files with 4 additions and 17 deletions
@@ -177,18 +177,13 @@ public interface SpiQuery<T> extends Query<T> {
/**
* This becomes a lazy loading query for a many relationship.
*/
void setLazyLoadForParents(List<Object> parentIds, BeanPropertyAssocMany<?> many);
void setLazyLoadForParents(BeanPropertyAssocMany<?> many);
/**
* Return the lazy loading 'many' property.
*/
BeanPropertyAssocMany<?> getLazyLoadForParentsProperty();
/**
* Return the list of parent Id's for lazy loading.
*/
List<Object> getLazyLoadForParentIds();
/**
* Set the load mode (+lazy or +query) and the load description.
*/
@@ -121,7 +121,7 @@ public class DefaultBeanLoader {
query.where().raw(ew);
}
query.setLazyLoadForParents(idList, many);
query.setLazyLoadForParents(many);
many.addWhereParentIdIn(query, idList);
query.setPersistenceContext(pc);
@@ -200,8 +200,6 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
private BeanPropertyAssocMany<?> lazyLoadForParentsProperty;
private List<Object> lazyLoadForParentsIds;
/**
* Hash of final query after AutoFetch tuning.
*/
@@ -525,16 +523,10 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
}
@Override
public void setLazyLoadForParents(List<Object> parentIds, BeanPropertyAssocMany<?> many) {
this.lazyLoadForParentsIds = parentIds;
public void setLazyLoadForParents(BeanPropertyAssocMany<?> many) {
this.lazyLoadForParentsProperty = many;
}
@Override
public List<Object> getLazyLoadForParentIds() {
return lazyLoadForParentsIds;
}
@Override
public BeanPropertyAssocMany<?> getLazyLoadForParentsProperty() {
return lazyLoadForParentsProperty;