org.apache.openejb.resource.jdbc.managed.local
Class LocalXAResource

java.lang.Object
  extended by org.apache.openejb.resource.jdbc.managed.local.LocalXAResource
All Implemented Interfaces:
XAResource

public class LocalXAResource
extends Object
implements XAResource


Field Summary
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Constructor Summary
LocalXAResource(Connection localTransaction)
           
 
Method Summary
 void commit(Xid xid, boolean flag)
           
 void end(Xid xid, int flag)
           
 void forget(Xid xid)
           
 int getTransactionTimeout()
           
 Xid getXid()
           
 boolean isSameRM(XAResource xaResource)
           
 int prepare(Xid xid)
           
 Xid[] recover(int flag)
           
 void rollback(Xid xid)
           
 boolean setTransactionTimeout(int transactionTimeout)
           
 void start(Xid xid, int flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalXAResource

public LocalXAResource(Connection localTransaction)
Method Detail

getXid

public Xid getXid()

start

public void start(Xid xid,
                  int flag)
           throws XAException
Specified by:
start in interface XAResource
Throws:
XAException

end

public void end(Xid xid,
                int flag)
         throws XAException
Specified by:
end in interface XAResource
Throws:
XAException

prepare

public int prepare(Xid xid)
Specified by:
prepare in interface XAResource

commit

public void commit(Xid xid,
                   boolean flag)
            throws XAException
Specified by:
commit in interface XAResource
Throws:
XAException

rollback

public void rollback(Xid xid)
              throws XAException
Specified by:
rollback in interface XAResource
Throws:
XAException

isSameRM

public boolean isSameRM(XAResource xaResource)
Specified by:
isSameRM in interface XAResource

forget

public void forget(Xid xid)
Specified by:
forget in interface XAResource

recover

public Xid[] recover(int flag)
Specified by:
recover in interface XAResource

getTransactionTimeout

public int getTransactionTimeout()
Specified by:
getTransactionTimeout in interface XAResource

setTransactionTimeout

public boolean setTransactionTimeout(int transactionTimeout)
Specified by:
setTransactionTimeout in interface XAResource


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.