Package org.exolab.castor.persist
Interface XAResourceSource
-
public interface XAResourceSource
A data source that wishes to particiate as an XA resource implements this interface. The source then returns anXAResourceImpl
which controls the transaction of this source through this interface.- Version:
- $Revision: 7088 $ $Date: 2005-06-20 06:01:00 -0600 (Mon, 20 Jun 2005) $
- Author:
- Assaf Arkin
- See Also:
XAResourceImpl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransactionContext
createTransactionContext(javax.transaction.xa.Xid xid)
Called byXAResourceImpl
to produce a new transaction context implementation suitable for this data source.TransactionContext
getTransactionContext()
Returns the transaction context associated with this source.void
setTransactionContext(TransactionContext tx)
Sets the transaction context associated with this source.void
xaFailed()
Indicate that the resource has failed and should be discarded.
-
-
-
Method Detail
-
getTransactionContext
TransactionContext getTransactionContext()
Returns the transaction context associated with this source.
-
setTransactionContext
void setTransactionContext(TransactionContext tx)
Sets the transaction context associated with this source.
-
xaFailed
void xaFailed()
Indicate that the resource has failed and should be discarded.
-
createTransactionContext
TransactionContext createTransactionContext(javax.transaction.xa.Xid xid)
Called byXAResourceImpl
to produce a new transaction context implementation suitable for this data source.
-
-