Refactor internals of batch lazy loading and query fetches

This commit is contained in:
Rob Bygrave
2014-01-18 23:35:42 +13:00
parent e685e2f4ac
commit 05dcdf162b
28 changed files with 661 additions and 981 deletions
@@ -5,38 +5,36 @@ import java.io.Serializable;
/**
* This is the path prefix for filterMany.
* <p>
* The actual path can change due to FetchConfig query joins that proceed
* the query that includes the filterMany.
* The actual path can change due to FetchConfig query joins that proceed the
* query that includes the filterMany.
* </p>
*
* @author rbygrave
*/
public class FilterExprPath implements Serializable {
private static final long serialVersionUID = -6420905565372842018L;
/**
* The path of the filterMany.
*/
private String path;
public FilterExprPath(String path){
this.path = path;
}
/**
* Trim off leading part of the path due to a
* proceeding (earlier) query join etc.
*/
public void trimPath(int prefixTrim) {
path = path.substring(prefixTrim);
}
private static final long serialVersionUID = -6420905565372842018L;
/**
* Return the path. This is a prefix used in the filterMany expressions.
*/
public String getPath() {
return path;
}
/**
* The path of the filterMany.
*/
private String path;
public FilterExprPath(String path) {
this.path = path;
}
/**
* Return a copy of the FilterExprPath trimming off leading part of the path
* due to a proceeding (earlier) query join etc.
*/
public FilterExprPath trimPath(int prefixTrim) {
return new FilterExprPath(path.substring(prefixTrim));
}
/**
* Return the path. This is a prefix used in the filterMany expressions.
*/
public String getPath() {
return path;
}
}