Package org.exolab.castor.persist
Class XAResourceImpl
java.lang.Object
org.exolab.castor.persist.XAResourceImpl
- All Implemented Interfaces:
XAResource
An
XAResource implementation for an XAResourceSource.
Provides the XA interface for starting transactions, participating
in two phase commit and suspending/resuming transactions against
the XA source. Transactions are shared across all XA sources that
map to the same cache engine.- Version:
- $Revision: 8141 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Assaf Arkin
- See Also:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidintbooleanisSameRM(XAResource xaRes) intXid[]recover(int flags) voidbooleansetTransactionTimeout(int timeout) void
-
Constructor Details
-
XAResourceImpl
-
-
Method Details
-
start
- Specified by:
startin interfaceXAResource- Throws:
XAException
-
end
- Specified by:
endin interfaceXAResource- Throws:
XAException
-
forget
- Specified by:
forgetin interfaceXAResource- Throws:
XAException
-
prepare
- Specified by:
preparein interfaceXAResource- Throws:
XAException
-
commit
- Specified by:
commitin interfaceXAResource- Throws:
XAException
-
rollback
- Specified by:
rollbackin interfaceXAResource- Throws:
XAException
-
recover
- Specified by:
recoverin interfaceXAResource- Throws:
XAException
-
isSameRM
- Specified by:
isSameRMin interfaceXAResource- Throws:
XAException
-
setTransactionTimeout
public boolean setTransactionTimeout(int timeout) - Specified by:
setTransactionTimeoutin interfaceXAResource
-
getTransactionTimeout
public int getTransactionTimeout()- Specified by:
getTransactionTimeoutin interfaceXAResource
-