1 5 package com.tc.objectserver.tx; 6 7 import com.tc.exception.ImplementMe; 8 import com.tc.net.protocol.tcm.ChannelID; 9 import com.tc.object.dmi.DmiDescriptor; 10 import com.tc.object.dna.impl.ObjectStringSerializer; 11 import com.tc.object.lockmanager.api.LockID; 12 import com.tc.object.tx.ServerTransactionID; 13 import com.tc.object.tx.TransactionID; 14 import com.tc.object.tx.TxnBatchID; 15 import com.tc.object.tx.TxnType; 16 import com.tc.util.SequenceID; 17 18 import java.util.ArrayList ; 19 import java.util.Collection ; 20 import java.util.Collections ; 21 import java.util.List ; 22 import java.util.Map ; 23 import java.util.Set ; 24 25 public final class TestServerTransaction implements ServerTransaction { 26 27 public List changes = new ArrayList (); 28 private ServerTransactionID sid; 29 private TxnBatchID bid; 30 31 public TestServerTransaction(ServerTransactionID sid, TxnBatchID bid) { 32 this.sid = sid; 33 this.bid = bid; 34 } 35 36 public ObjectStringSerializer getSerializer() { 37 throw new ImplementMe(); 38 } 39 40 public LockID[] getLockIDs() { 41 throw new ImplementMe(); 42 } 43 44 public ChannelID getChannelID() { 45 return sid.getChannelID(); 46 } 47 48 public TransactionID getTransactionID() { 49 return sid.getClientTransactionID(); 50 } 51 52 public SequenceID getClientSequenceID() { 53 throw new ImplementMe(); 54 } 55 56 public List getChanges() { 57 return changes; 58 } 59 60 public Map getNewRoots() { 61 return Collections.EMPTY_MAP; 62 } 63 64 public TxnType getTransactionType() { 65 throw new ImplementMe(); 66 } 67 68 public Collection getObjectIDs() { 69 throw new ImplementMe(); 70 } 71 72 public Collection addNotifiesTo(List list) { 73 return list; 74 } 75 76 public ServerTransactionID getServerTransactionID() { 77 return sid; 78 } 79 80 public TxnBatchID getBatchID() { 81 return bid; 82 } 83 84 public DmiDescriptor[] getDmiDescriptors() { 85 throw new ImplementMe(); 86 } 87 88 public boolean isPassive() { 89 return false; 90 } 91 92 public Set getNewObjectIDs() { 93 throw new ImplementMe(); 94 } 95 96 } | Popular Tags |