org.apache.openejb.resource.jdbc.managed.local
Class LocalXAResource
java.lang.Object
org.apache.openejb.resource.jdbc.managed.local.LocalXAResource
- All Implemented Interfaces:
- XAResource
public class LocalXAResource
- extends Object
- implements XAResource
| Fields inherited from interface javax.transaction.xa.XAResource |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalXAResource
public LocalXAResource(Connection localTransaction)
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–2015 The Apache Software Foundation. All rights reserved.