]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/StatementHandleImpl.java
Merge "Multiple reader thread support for db client"
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / StatementHandleImpl.java
index 1630b12521637550f2d6357b51d221f2dd0145e4..83a8ec72d2d7f074d6e4ea09d85f72c333a55453 100644 (file)
@@ -1,36 +1,36 @@
-package fi.vtt.simantics.procore.internal;\r
-\r
-import org.simantics.db.procore.cluster.ClusterImpl;\r
-import org.simantics.db.service.ClusterUID;\r
-import org.simantics.db.service.ClusterBuilder.StatementHandle;\r
-\r
-final public class StatementHandleImpl implements StatementHandle {\r
-\r
-    final int pKey;\r
-    final int oKey;\r
-    final byte pForeign;\r
-    final byte oForeign;\r
-    final ClusterUID pClusterUID;\r
-    final ClusterUID oClusterUID;\r
-\r
-    public StatementHandleImpl(int pKey, byte pForeign, int oKey, byte oForeign,\r
-            ClusterUID pClusterUID, ClusterUID oClusterUID)  {\r
-        this.pKey = pKey;\r
-        this.oKey = oKey;\r
-        this.pForeign = pForeign;\r
-        this.oForeign = oForeign;\r
-        this.pClusterUID = pClusterUID;\r
-        this.oClusterUID = oClusterUID;\r
-    }\r
-    \r
-    public void apply(Object cluster) {\r
-\r
-        ClusterImpl impl = (ClusterImpl)cluster;\r
-        Change change = impl.change;\r
-\r
-        change.addStatementIndex1(pKey, pClusterUID, pForeign, impl.foreignLookup);\r
-        change.addStatementIndex2(oKey, oClusterUID, oForeign, impl.foreignLookup);\r
-        \r
-    }\r
-    \r
-}\r
+package fi.vtt.simantics.procore.internal;
+
+import org.simantics.db.procore.cluster.ClusterImpl;
+import org.simantics.db.service.ClusterUID;
+import org.simantics.db.service.ClusterBuilder.StatementHandle;
+
+final public class StatementHandleImpl implements StatementHandle {
+
+    final int pKey;
+    final int oKey;
+    final byte pForeign;
+    final byte oForeign;
+    final ClusterUID pClusterUID;
+    final ClusterUID oClusterUID;
+
+    public StatementHandleImpl(int pKey, byte pForeign, int oKey, byte oForeign,
+            ClusterUID pClusterUID, ClusterUID oClusterUID)  {
+        this.pKey = pKey;
+        this.oKey = oKey;
+        this.pForeign = pForeign;
+        this.oForeign = oForeign;
+        this.pClusterUID = pClusterUID;
+        this.oClusterUID = oClusterUID;
+    }
+    
+    public void apply(Object cluster) {
+
+        ClusterImpl impl = (ClusterImpl)cluster;
+        Change change = impl.change;
+
+        change.addStatementIndex1(pKey, pClusterUID, pForeign, impl.foreignLookup);
+        change.addStatementIndex2(oKey, oClusterUID, oForeign, impl.foreignLookup);
+        
+    }
+    
+}