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 void
commit(Xid arg0, boolean arg1)
void
end(Xid arg0, int arg1)
void
forget(Xid arg0)
int
getTransactionTimeout()
boolean
isSameRM(XAResource arg0)
int
prepare(Xid arg0)
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.Xid[]
recover(int arg0)
void
rollback(Xid arg0)
boolean
setTransactionTimeout(int arg0)
void
start(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:
commit
in interfaceXAResource
- Throws:
XAException
-
end
public void end(Xid arg0, int arg1) throws XAException
- Specified by:
end
in interfaceXAResource
- Throws:
XAException
-
forget
public void forget(Xid arg0) throws XAException
- Specified by:
forget
in interfaceXAResource
- Throws:
XAException
-
getTransactionTimeout
public int getTransactionTimeout() throws XAException
- Specified by:
getTransactionTimeout
in interfaceXAResource
- Throws:
XAException
-
isSameRM
public boolean isSameRM(XAResource arg0) throws XAException
- Specified by:
isSameRM
in interfaceXAResource
- Throws:
XAException
-
prepare
public int prepare(Xid arg0) throws XAException
- Specified by:
prepare
in interfaceXAResource
- Throws:
XAException
-
recover
public Xid[] recover(int arg0) throws XAException
- Specified by:
recover
in interfaceXAResource
- Throws:
XAException
-
rollback
public void rollback(Xid arg0) throws XAException
- Specified by:
rollback
in interfaceXAResource
- Throws:
XAException
-
setTransactionTimeout
public boolean setTransactionTimeout(int arg0) throws XAException
- Specified by:
setTransactionTimeout
in interfaceXAResource
- Throws:
XAException
-
start
public void start(Xid arg0, int arg1) throws XAException
- Specified by:
start
in interfaceXAResource
- Throws:
XAException
-
-