SCLContext sclContext = SCLContext.getCurrent();
Object oldGraph = sclContext.get("graph");
try {
- Function1<Variable,Object> exp = graph.syncRequest(new CompileProceduralExpressionValueRequest(graph, expression, context),
- TransientCacheListener.<Function1<Variable,Object>>instance());
+ Function1<Object,Object> exp = graph.syncRequest(new CompileProceduralExpressionValueRequest(graph, expression, context),
+ TransientCacheListener.instance());
sclContext.put("graph", graph);
return exp.apply(context);
} catch (DatabaseException e) {
return componentType;
}
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((relation == null) ? 0 : relation.hashCode());
+ result = prime * result + ((componentType == null) ? 0 : componentType.hashCode());
+ result = prime * result + ((expression == null) ? 0 : expression.hashCode());
+ result = prime * result + ((indexRoot == null) ? 0 : indexRoot.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ CompileProceduralExpressionValueRequest other = (CompileProceduralExpressionValueRequest) obj;
+ if (relation == null) {
+ if (other.relation != null)
+ return false;
+ } else if (!relation.equals(other.relation))
+ return false;
+ if (componentType == null) {
+ if (other.componentType != null)
+ return false;
+ } else if (!componentType.equals(other.componentType))
+ return false;
+ if (expression == null) {
+ if (other.expression != null)
+ return false;
+ } else if (!expression.equals(other.expression))
+ return false;
+ if (indexRoot == null) {
+ if (other.indexRoot != null)
+ return false;
+ } else if (!indexRoot.equals(other.indexRoot))
+ return false;
+ return true;
+ }
+
+
}