-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);
+
+ }
+
+}