X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.impl%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fimpl%2Fquery%2FValueQuery.java;h=b96e13d42fc14d177779ef021564dfb1fdd22fed;hb=68ce0966a57f5153b133c6283fdbae10f683b745;hp=1521d31936d8e3946addd015b62ac9ce68b77cbe;hpb=46c8189fee24a71d1ce0634e12db5a696e952b10;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/ValueQuery.java b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/ValueQuery.java index 1521d3193..b96e13d42 100644 --- a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/ValueQuery.java +++ b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/ValueQuery.java @@ -43,18 +43,9 @@ final public class ValueQuery extends UnaryQuery> { } - public static byte[] computeForEach(ReadGraphImpl graph, final int r) { - - graph.ensureLoaded(r); - - return graph.getValue(r); - - } - - @Override - public Object compute(ReadGraphImpl graph, final InternalProcedure procedure) throws DatabaseException { - return computeForEach(graph, id, this, procedure); - } +// public Object compute(ReadGraphImpl graph, final InternalProcedure procedure) throws DatabaseException { +// return computeForEach(graph, id, this, procedure); +// } @Override public String toString() { @@ -63,13 +54,13 @@ final public class ValueQuery extends UnaryQuery> { @Override public Object performFromCache(ReadGraphImpl graph, InternalProcedure procedure) throws DatabaseException { - return compute(graph, procedure); + return computeForEach(graph, id, this, procedure); } @Override public void recompute(ReadGraphImpl graph) throws DatabaseException { - compute(graph, new InternalProcedure() { + computeForEach(graph, id, this, new InternalProcedure() { @Override public void execute(ReadGraphImpl graph, byte[] result) {