1 4 package com.tc.object.change; 5 6 import com.tc.io.TCByteBufferOutputStream; 7 import com.tc.object.TCObject; 8 import com.tc.object.dna.api.DNACursor; 9 import com.tc.object.dna.impl.DNAEncoding; 10 import com.tc.object.dna.impl.ObjectStringSerializer; 11 import com.tc.object.tx.optimistic.OptimisticTransactionManager; 12 13 16 public interface TCChangeBuffer { 17 public final static int NONE = 0; 18 public final static int PHYSICAL = 1; 19 public final static int LOGICAL = 3; 20 public final static int ARRAY = 7; 21 22 public void literalValueChanged(Object newValue); 23 24 public void fieldChanged(String classname, String fieldname, Object newValue, int index); 25 26 public void arrayChanged(int startPos, Object array, int length); 27 28 public void logicalInvoke(int method, Object [] parameters); 29 30 public void writeTo(TCByteBufferOutputStream output, ObjectStringSerializer serializer, DNAEncoding encoding); 31 32 public TCObject getTCObject(); 33 34 public int getTotalEventCount(); 35 36 public int getType(); 37 38 public void accept(TCChangeBufferEventVisitor visitor); 39 40 public DNACursor getDNACursor(OptimisticTransactionManager transactionManager); 41 42 } | Popular Tags |