1 /*2 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright3 * 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 ;18 import java.util.List ;19 import java.util.Map ;20 import java.util.Set ;21 22 /**23 * Represents an atomic change to the states of objects on the server24 * 25 * @author steve26 */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 getChanges();45 46 public Map getNewRoots();47 48 public TxnType getTransactionType();49 50 public Collection getObjectIDs();51 52 public Set getNewObjectIDs();53 54 public Collection addNotifiesTo(List 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/signature60 * will change and become more sane/complex in future.61 */62 public boolean isPassive();63 64 }65