001: /*
002: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
003: * notice. All rights reserved.
004: */
005: package com.tc.l2.objectserver;
006:
007: import com.tc.net.groups.NodeID;
008: import com.tc.object.dmi.DmiDescriptor;
009: import com.tc.object.dna.impl.ObjectStringSerializer;
010: import com.tc.object.gtx.GlobalTransactionID;
011: import com.tc.object.lockmanager.api.LockID;
012: import com.tc.object.tx.ServerTransactionID;
013: import com.tc.object.tx.TransactionID;
014: import com.tc.object.tx.TxnBatchID;
015: import com.tc.object.tx.TxnType;
016: import com.tc.objectserver.tx.ServerTransaction;
017: import com.tc.util.SequenceID;
018:
019: import java.util.Collection;
020: import java.util.List;
021: import java.util.Map;
022: import java.util.Set;
023:
024: public class PrunedServerTransaction implements ServerTransaction {
025:
026: private final List prunedChanges;
027: private final ServerTransaction orgTxn;
028: private final Set oids;
029: private final Set newOids;
030:
031: public PrunedServerTransaction(List prunedChanges,
032: ServerTransaction st, Set oids, Set newOids) {
033: this .prunedChanges = prunedChanges;
034: this .orgTxn = st;
035: this .oids = oids;
036: this .newOids = newOids;
037: }
038:
039: public Collection getNotifies() {
040: return orgTxn.getNotifies();
041: }
042:
043: public TxnBatchID getBatchID() {
044: return orgTxn.getBatchID();
045: }
046:
047: public List getChanges() {
048: return prunedChanges;
049: }
050:
051: public NodeID getSourceID() {
052: return orgTxn.getSourceID();
053: }
054:
055: public DmiDescriptor[] getDmiDescriptors() {
056: return orgTxn.getDmiDescriptors();
057: }
058:
059: public LockID[] getLockIDs() {
060: return orgTxn.getLockIDs();
061: }
062:
063: public Set getNewObjectIDs() {
064: return newOids;
065: }
066:
067: public Map getNewRoots() {
068: return orgTxn.getNewRoots();
069: }
070:
071: public Set getObjectIDs() {
072: return oids;
073: }
074:
075: public ObjectStringSerializer getSerializer() {
076: return orgTxn.getSerializer();
077: }
078:
079: public ServerTransactionID getServerTransactionID() {
080: return orgTxn.getServerTransactionID();
081: }
082:
083: public TransactionID getTransactionID() {
084: return orgTxn.getTransactionID();
085: }
086:
087: public TxnType getTransactionType() {
088: return orgTxn.getTransactionType();
089: }
090:
091: public SequenceID getClientSequenceID() {
092: return orgTxn.getClientSequenceID();
093: }
094:
095: public GlobalTransactionID getGlobalTransactionID() {
096: return orgTxn.getGlobalTransactionID();
097: }
098:
099: public boolean needsBroadcast() {
100: return orgTxn.needsBroadcast();
101: }
102:
103: }
|