X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.interop.mapping%2Fsrc%2Forg%2Fsimantics%2Finterop%2Fmapping%2FSplittingWriteGraph.java;fp=org.simantics.interop.mapping%2Fsrc%2Forg%2Fsimantics%2Finterop%2Fmapping%2FSplittingWriteGraph.java;h=fb2cbb56ff3e7bb1dae6274e0c4b97288e0a49e8;hb=cde15da71bdb1ccba37aa890fd9fbc2ba99bac58;hp=c3b02988b5809da26fb5c2840d0f0a14371bcf5f;hpb=cf807bd39e69a296d4b1b975beb5320b6ed4dd70;p=simantics%2Finterop.git diff --git a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java index c3b0298..fb2cbb5 100644 --- a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java +++ b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java @@ -6240,4 +6240,60 @@ public class SplittingWriteGraph implements WriteGraph { } } + @Override + public T getValue2(final Resource subject, final Object context) throws DatabaseException { + try { + return (T) session.syncRequest(new Read() { + @Override + public T perform(ReadGraph graph) throws DatabaseException { + return graph.getValue2(subject, context); + } + }); + } catch (DatabaseException e) { + throw new ServiceException(e); + } + } + + @Override + public T getPossibleValue2(final Resource subject, final Object context) throws DatabaseException { + try { + return (T) session.syncRequest(new Read() { + @Override + public T perform(ReadGraph graph) throws DatabaseException { + return graph.getPossibleValue2(subject, context); + } + }); + } catch (DatabaseException e) { + throw new ServiceException(e); + } + } + + @Override + public T getValue2(final Resource subject, final Object context, final Binding binding) throws DatabaseException { + try { + return (T) session.syncRequest(new Read() { + @Override + public T perform(ReadGraph graph) throws DatabaseException { + return graph.getValue2(subject, context, binding); + } + }); + } catch (DatabaseException e) { + throw new ServiceException(e); + } + } + + @Override + public T getPossibleValue2(final Resource subject, final Object context, final Binding binding) throws DatabaseException { + try { + return (T) session.syncRequest(new Read() { + @Override + public T perform(ReadGraph graph) throws DatabaseException { + return graph.getPossibleValue2(subject, context, binding); + } + }); + } catch (DatabaseException e) { + throw new ServiceException(e); + } + } + }