1 22 package org.jboss.ejb3.embedded; 23 24 import javax.transaction.xa.Xid ; 25 import org.jboss.tm.*; 26 27 33 public class XidFactoryMBean implements org.jboss.tm.XidFactoryMBean 34 { 35 private XidFactoryBase base; 36 37 public XidFactoryMBean(XidFactoryBase base) 38 { 39 this.base = base; 40 } 41 42 public org.jboss.tm.XidFactoryMBean getInstance() 43 { 44 return this; 45 } 46 47 public String getName() 48 { 49 throw new RuntimeException ("should not be called"); 50 } 51 52 public int getState() 53 { 54 throw new RuntimeException ("should not be called"); 55 } 56 57 public String getStateString() 58 { 59 throw new RuntimeException ("should not be called"); 60 } 61 62 public void jbossInternalLifecycle(String method) throws Exception 63 { 64 throw new RuntimeException ("should not be called"); 65 } 66 67 public void create() throws Exception 68 { 69 } 70 71 public void start() throws Exception 72 { 73 } 74 75 public void stop() 76 { 77 } 78 79 public void destroy() 80 { 81 } 82 83 public String getBaseGlobalId() 84 { 85 return base.getBaseGlobalId(); 86 } 87 88 public void setBaseGlobalId(String baseGlobalId) 89 { 90 base.setBaseGlobalId(baseGlobalId); 91 } 92 93 public long getGlobalIdNumber() 94 { 95 return base.getGlobalIdNumber(); 96 } 97 98 public void setGlobalIdNumber(long globalIdNumber) 99 { 100 base.setGlobalIdNumber(globalIdNumber); 101 } 102 103 public String getBranchQualifier() 104 { 105 return base.getBranchQualifier(); 106 } 107 108 public void setBranchQualifier(String branchQualifier) 109 { 110 base.setBranchQualifier(branchQualifier); 111 } 112 113 public boolean isPad() 114 { 115 return base.isPad(); 116 } 117 118 public void setPad(boolean pad) 119 { 120 base.setPad(pad); 121 } 122 123 public XidImpl newXid() 124 { 125 return base.newXid(); 126 } 127 128 public XidImpl newBranch(GlobalId globalId) 129 { 130 return base.newBranch(globalId); 131 } 132 133 public XidImpl newBranch(XidImpl xid, long branchIdNum) 134 { 135 return base.newBranch(xid, branchIdNum); 136 } 137 138 public XidImpl recreateXid(long localId) 139 { 140 return base.recreateXid(localId); 141 } 142 143 public XidImpl recreateXid(long localId, GlobalId globalId) 144 { 145 return base.recreateXid(localId, globalId); 146 } 147 148 public byte[] localIdToGlobalId(long localId) 149 { 150 return base.localIdToGlobalId(localId); 151 } 152 153 public long extractLocalIdFrom(byte[] globalId) 154 { 155 return base.extractLocalIdFrom(globalId); 156 } 157 158 public String getBaseBranchQualifier(byte[] branchQualifier) 159 { 160 return base.getBaseBranchQualifier(branchQualifier); 161 } 162 163 public String toString(Xid xid) 164 { 165 return base.toString(xid); 166 } 167 } 168 | Popular Tags |