org.exolab.castor.persist

Class XAResourceImpl

Implemented Interfaces:
XAResource

public final class XAResourceImpl
extends java.lang.Object
implements 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: 1.1.1.1 $ $Date: 2003/03/03 07:08:50 $
Author:
Assaf Arkin
See Also:
TransactionContext, XAResourceSource

Constructor Summary

XAResourceImpl(LockEngine engine, XAResourceSource xaSource)

Method Summary

void
commit(Xid xid, boolean onePhase)
void
end(Xid xid, int flags)
void
forget(Xid xid)
int
getTransactionTimeout()
boolean
isSameRM(XAResource xaRes)
int
prepare(Xid xid)
Xid[]
recover(int flags)
void
rollback(Xid xid)
boolean
setTransactionTimeout(int timeout)
void
start(Xid xid, int flags)

Constructor Details

XAResourceImpl

public XAResourceImpl(LockEngine engine,
                      XAResourceSource xaSource)

Method Details

commit

public void commit(Xid xid,
                   boolean onePhase)
            throws XAException

end

public void end(Xid xid,
                int flags)
            throws XAException

forget

public void forget(Xid xid)
            throws XAException

getTransactionTimeout

public int getTransactionTimeout()

isSameRM

public boolean isSameRM(XAResource xaRes)
            throws XAException

prepare

public int prepare(Xid xid)
            throws XAException

recover

public Xid[] recover(int flags)
            throws XAException

rollback

public void rollback(Xid xid)
            throws XAException

setTransactionTimeout

public boolean setTransactionTimeout(int timeout)

start

public void start(Xid xid,
                  int flags)
            throws XAException

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com