Package org.apache.jackrabbit.jca
Class TransactionBoundXAResource
- java.lang.Object
-
- org.apache.jackrabbit.jca.TransactionBoundXAResource
-
- All Implemented Interfaces:
XAResource
public class TransactionBoundXAResource 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
Constructors Constructor Description TransactionBoundXAResource(JCAManagedConnection connection, XAResource xaResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(Xid arg0, boolean arg1)voidend(Xid arg0, int arg1)voidforget(Xid arg0)intgetTransactionTimeout()booleanisSameRM(XAResource arg0)intprepare(Xid arg0)protected voidrebind(XAResource res)There is a one-to-one Relation between this TransactionBoundXAResource and the JCAManagedConnection so the used XAResource must be in sync when it is changed in the JCAManagedConnection.Xid[]recover(int arg0)voidrollback(Xid arg0)booleansetTransactionTimeout(int arg0)voidstart(Xid arg0, int arg1)
-
-
-
Constructor Detail
-
TransactionBoundXAResource
public TransactionBoundXAResource(JCAManagedConnection connection, XAResource xaResource)
-
-
Method Detail
-
rebind
protected void rebind(XAResource res)
There is a one-to-one Relation between this TransactionBoundXAResource and the JCAManagedConnection so the used XAResource must be in sync when it is changed in the JCAManagedConnection.- Parameters:
res-
-
commit
public void commit(Xid arg0, boolean arg1) throws XAException
- Specified by:
commitin interfaceXAResource- Throws:
XAException
-
end
public void end(Xid arg0, int arg1) throws XAException
- Specified by:
endin interfaceXAResource- Throws:
XAException
-
forget
public void forget(Xid arg0) throws XAException
- Specified by:
forgetin interfaceXAResource- Throws:
XAException
-
getTransactionTimeout
public int getTransactionTimeout() throws XAException- Specified by:
getTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
isSameRM
public boolean isSameRM(XAResource arg0) throws XAException
- Specified by:
isSameRMin interfaceXAResource- Throws:
XAException
-
prepare
public int prepare(Xid arg0) throws XAException
- Specified by:
preparein interfaceXAResource- Throws:
XAException
-
recover
public Xid[] recover(int arg0) throws XAException
- Specified by:
recoverin interfaceXAResource- Throws:
XAException
-
rollback
public void rollback(Xid arg0) throws XAException
- Specified by:
rollbackin interfaceXAResource- Throws:
XAException
-
setTransactionTimeout
public boolean setTransactionTimeout(int arg0) throws XAException- Specified by:
setTransactionTimeoutin interfaceXAResource- Throws:
XAException
-
start
public void start(Xid arg0, int arg1) throws XAException
- Specified by:
startin interfaceXAResource- Throws:
XAException
-
-