1 package com.daffodilwoods.rmi.server; 2 3 import com.daffodilwoods.rmi.interfaces._RmiDXAResource; 4 import com.daffodilwoods.rmi.interfaces._RmiConnection; 5 import javax.transaction.xa.Xid ; 6 import java.util.Properties ; 7 import javax.transaction.xa.XAException ; 8 import com.daffodilwoods.daffodildb.server.serversystem._DXAResource; 9 import java.rmi.server.UnicastRemoteObject ; 10 import java.rmi.RemoteException ; 11 import com.daffodilwoods.daffodildb.server.serversystem._Connection; 12 13 public class RmiDXAResourceServerSide extends UnicastRemoteObject implements _RmiDXAResource { 14 15 _DXAResource dxaResource_Interface; 16 17 public RmiDXAResourceServerSide(_DXAResource dxaResource0) throws RemoteException { 18 dxaResource_Interface = dxaResource0; 19 } 20 public _RmiConnection start(Xid xid, int flags, Properties prop) throws XAException ,RemoteException { 21 return new RmiConnectionServerSide(dxaResource_Interface.start(xid,flags,prop)); 22 } 23 public void end(Xid xid, int flags) throws XAException ,RemoteException { 24 dxaResource_Interface.end(xid,flags); 25 } 26 public void forget(Xid xid) throws XAException ,RemoteException { 27 dxaResource_Interface.forget(xid); 28 } 29 public void commit(Xid xid) throws XAException ,RemoteException { 30 dxaResource_Interface.commit(xid); 31 } 32 public int prepare(Xid xid) throws XAException ,RemoteException { 33 return dxaResource_Interface.prepare(xid); 34 } 35 public int makePersistent(Xid xid) throws XAException ,RemoteException { 36 return dxaResource_Interface.makePersistent(xid); 37 } 38 public void rollback(Xid xid) throws XAException ,RemoteException { 39 dxaResource_Interface.rollback(xid); 40 } 41 public boolean inGlobalTransaction() throws RemoteException { 42 return dxaResource_Interface.inGlobalTransaction(); 43 } 44 public void close() throws RemoteException { 45 dxaResource_Interface.close(); 46 } 47 48 } 49 | Popular Tags |