KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > change > TCChangeBuffer


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

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 /**
14  * @author orion
15  */

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 JavaDoc newValue);
23
24   public void fieldChanged(String JavaDoc classname, String JavaDoc fieldname, Object JavaDoc newValue, int index);
25
26   public void arrayChanged(int startPos, Object JavaDoc array, int length);
27
28   public void logicalInvoke(int method, Object JavaDoc[] 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