org.exolab.castor.persist
Class XAResourceImpl
java.lang.Object
org.exolab.castor.persist.XAResourceImpl
- 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.
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:50 $
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