KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > objectserver > tx > ServerTransaction


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

5 package com.tc.objectserver.tx;
6
7 import com.tc.net.protocol.tcm.ChannelID;
8 import com.tc.object.dmi.DmiDescriptor;
9 import com.tc.object.dna.impl.ObjectStringSerializer;
10 import com.tc.object.lockmanager.api.LockID;
11 import com.tc.object.tx.ServerTransactionID;
12 import com.tc.object.tx.TransactionID;
13 import com.tc.object.tx.TxnBatchID;
14 import com.tc.object.tx.TxnType;
15 import com.tc.util.SequenceID;
16
17 import java.util.Collection JavaDoc;
18 import java.util.List JavaDoc;
19 import java.util.Map JavaDoc;
20 import java.util.Set JavaDoc;
21
22 /**
23  * Represents an atomic change to the states of objects on the server
24  *
25  * @author steve
26  */

27
28 public interface ServerTransaction {
29
30   public TxnBatchID getBatchID();
31
32   public ObjectStringSerializer getSerializer();
33
34   public LockID[] getLockIDs();
35
36   public ChannelID getChannelID();
37
38   public TransactionID getTransactionID();
39
40   public SequenceID getClientSequenceID();
41
42   public ServerTransactionID getServerTransactionID();
43
44   public List JavaDoc getChanges();
45
46   public Map JavaDoc getNewRoots();
47
48   public TxnType getTransactionType();
49
50   public Collection JavaDoc getObjectIDs();
51   
52   public Set JavaDoc getNewObjectIDs();
53
54   public Collection JavaDoc addNotifiesTo(List JavaDoc list);
55
56   public DmiDescriptor[] getDmiDescriptors();
57
58   /*
59    * This method returns true if the transaction arrives in the passive server. I see that this method name/signature
60    * will change and become more sane/complex in future.
61    */

62   public boolean isPassive();
63
64 }
65
Popular Tags