1 package org.simantics.modeling.query;
3 import org.simantics.databoard.Bindings;
4 import org.simantics.db.ReadGraph;
5 import org.simantics.db.Resource;
6 import org.simantics.db.exception.DatabaseException;
7 import org.simantics.db.layer0.variable.ConstantPropertyVariable;
8 import org.simantics.db.layer0.variable.ProxyChildVariable;
9 import org.simantics.db.layer0.variable.StandardGraphChildVariable;
10 import org.simantics.db.layer0.variable.Variable;
11 import org.simantics.db.layer0.variable.Variables;
13 public class QueryRootVariable extends StandardGraphChildVariable {
15 public QueryRootVariable(QueryProxyChildVariable parent, Resource resource) {
16 super(parent, null, resource);
20 public String getName(ReadGraph graph) throws DatabaseException {
21 return ProxyChildVariable.CONTEXT_END;
24 @SuppressWarnings("deprecation")
26 public Variable getNameVariable(ReadGraph graph) throws DatabaseException {
27 return new ConstantPropertyVariable(this, Variables.NAME, ProxyChildVariable.CONTEXT_END, Bindings.STRING);