X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.db.impl%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fimpl%2Fgraph%2FWriteGraphImpl.java;h=0c4e681385da7ab25a4c5afae9217a649c1a7966;hp=ca485f9893957ff784075f686b87221e843fce50;hb=277b1c7fb3fdd8effb4bf2b447358d0e4ef0e302;hpb=56a799c9b7d395cefb59e101cd0f7ce8d68f88e6 diff --git a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/graph/WriteGraphImpl.java b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/graph/WriteGraphImpl.java index ca485f989..0c4e68138 100644 --- a/bundles/org.simantics.db.impl/src/org/simantics/db/impl/graph/WriteGraphImpl.java +++ b/bundles/org.simantics.db.impl/src/org/simantics/db/impl/graph/WriteGraphImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * Copyright (c) 2007, 2018 Association for Decentralized Information Management * in Industry THTH ry. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 @@ -98,7 +98,7 @@ final public class WriteGraphImpl extends ReadGraphImpl implements WriteGraph { private WriteGraphImpl(CacheEntry parent2, QueryProcessor readSupport, WriteSupport writeSupport, VirtualGraph provider) { - super(parent2, readSupport); + super(null, parent2, readSupport); this.writeSupport = writeSupport; this.provider = provider; } @@ -128,11 +128,6 @@ final public class WriteGraphImpl extends ReadGraphImpl implements WriteGraph { return new WriteGraphImpl(parent, processor, writeSupport, provider); } - @Override - final public ReadGraphImpl withAsyncParent(CacheEntry parent2) { - return new WriteGraphImpl(parent2, processor, writeSupport, provider); - } - @Override public ReadGraphImpl newRestart(ReadGraphImpl impl) { @@ -801,7 +796,7 @@ final public class WriteGraphImpl extends ReadGraphImpl implements WriteGraph { Layer0 b = getBuiltins(); initBuiltinValues(b); - + Statement literalStatement = getPossibleStatement(resource, predicate); if(literalStatement != null && resource.equals(literalStatement.getSubject())) {