]> gerrit.simantics Code Review - simantics/interop.git/commitdiff
SplittingWriteGraph and WriteGraphProxy went out of date after ReadGraph.isImmutable...
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 22 Aug 2012 19:20:35 +0000 (19:20 +0000)
committerMarko Luukkainen <marko.luukkainen@vtt.fi>
Thu, 2 Feb 2017 09:22:21 +0000 (11:22 +0200)
refs #3619

git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@25498 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java
org.simantics.interop.mapping/src/org/simantics/interop/mapping/WriteGraphProxy.java

index a91c8c0b72eff08f3ecf195887967c716a04c870..791ab0a76d4278022481c6e1dac28f993178662f 100644 (file)
@@ -6183,4 +6183,18 @@ public class SplittingWriteGraph implements WriteGraph {
                return null;\r
        }\r
 \r
+       @Override\r
+       public boolean isImmutable(final Resource resource) throws DatabaseException {\r
+           try {\r
+               return session.syncRequest(new Read<Boolean>() {\r
+                   @Override\r
+                   public Boolean perform(ReadGraph graph) throws DatabaseException {\r
+                       return graph.isImmutable(resource);\r
+                   }\r
+               });\r
+           } catch (DatabaseException e) {\r
+               throw new ServiceException(e);\r
+           }\r
+       }\r
+\r
 }\r
index cefc7613c3b70f7a42ca8ea1d009c235b0db0815..204d8012a9f972434db20c7a2e6b6eaff84be4a4 100644 (file)
@@ -2742,4 +2742,9 @@ public class WriteGraphProxy implements WriteGraph {
                return graph.getProvider();\r
        }\r
 \r
+       @Override\r
+       public boolean isImmutable(Resource resource) throws DatabaseException {\r
+               return graph.isImmutable(resource);\r
+       }\r
+\r
 }\r