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