1 package fi.vtt.simantics.procore.internal;
\r
3 import org.simantics.db.service.ClusterUID;
\r
5 final public class Change {
\r
11 ClusterUID clusterUID1;
\r
12 ClusterUID clusterUID2;
\r
20 public String toString() {
\r
21 return "Change " + (key0&0xffff) + " " + (key1&0xffff) + " " + (key2&0xffff) + " " + clusterUID2 + " " + clusterUID2;
\r
24 public final void init() {
\r
28 public final void initValue() {
\r
32 final void addStatementIndex0(int key, byte op) {
\r
38 final void addStatementIndex1(int key, ClusterUID clusterUID, byte lookIndex, byte[] lookup) {
\r
40 clusterUID1 = clusterUID;
\r
41 lookIndex1 = lookIndex;
\r
43 // if(lookIndex > 0)
\r
44 // System.err.println("statementIndex1 " + pos + " " + lookIndex);
\r
47 final void addStatementIndex2(int key, ClusterUID clusterUID, byte lookIndex, byte[] lookup) {
\r
49 clusterUID2 = clusterUID;
\r
50 lookIndex2 = lookIndex;
\r
54 final void addStatementIndex(int key, ClusterUID clusterUID, byte op) {
\r
56 // new Exception("lastArg=" + lastArg).printStackTrace();
\r
58 assert (lastArg < 3);
\r
61 addStatementIndex0(key, op);
\r
62 else if (1 == lastArg)
\r
63 addStatementIndex1(key, clusterUID, (byte)0, null);
\r
64 else if (2 == lastArg)
\r
65 addStatementIndex2(key, clusterUID, (byte)0, null);
\r