| java.lang.Object org.objectweb.jonas.resource.LocalXAWrapper
LocalXAWrapper | final public class LocalXAWrapper implements XAResource(Code) | | A LocalXAWrapper that intercepts the XA calls for an RAR that only
supports LocalTransactions and translates them to the appropriate
Local Transaction methods.
author: Eric.Hardesty@bull.com |
Field Summary | |
protected boolean | isInTransaction | protected LocalTransaction | localTrans The LocalTransaction object to make the begin(), commit(),
and rollback() calls. |
Constructor Summary | |
| LocalXAWrapper(LocalTransaction _localTrans, Logger _logger) |
Method Summary | |
public void | commit(Xid xid, boolean flag) Commit the localTransaction, the params aren't used for a
local transaction. | public void | end(Xid xid, int i) No method to map for a local transaction. | public void | forget(Xid xid) No method to map for a local transaction. | public int | getTransactionTimeout() No method to map for a local transaction, just
return no timeout. | public boolean | isSameRM(XAResource xaresource) | public int | prepare(Xid xid) No method to map for a local transaction, just return XA_OK. | public Xid[] | recover(int i) No method to map for a local transaction. | public void | rollback(Xid xid) Rollback the localTransaction, the param isn't used for a
local transaction. | public boolean | setTransactionTimeout(int i) No method to map for a local transaction, just
return no timeout. | public void | start(Xid xid, int i) Only start a local transaction if a new transaction is being
attempted, just return if joining or resuming. |
isInTransaction | protected boolean isInTransaction(Code) | | The boolean to determine if in a current transaction
|
localTrans | protected LocalTransaction localTrans(Code) | | The LocalTransaction object to make the begin(), commit(),
and rollback() calls.
|
LocalXAWrapper | LocalXAWrapper(LocalTransaction _localTrans, Logger _logger)(Code) | | |
commit | public void commit(Xid xid, boolean flag) throws XAException(Code) | | Commit the localTransaction, the params aren't used for a
local transaction.
Parameters: xid - transaction xid Parameters: flag - for interface compliance exception: XAException - Exception trying to commit local transaction |
end | public void end(Xid xid, int i) throws XAException(Code) | | No method to map for a local transaction.
Parameters: xid - transaction xid |
forget | public void forget(Xid xid) throws XAException(Code) | | No method to map for a local transaction.
Parameters: xid - transaction xid |
getTransactionTimeout | public int getTransactionTimeout() throws XAException(Code) | | No method to map for a local transaction, just
return no timeout.
|
isSameRM | public boolean isSameRM(XAResource xaresource) throws XAException(Code) | | Determine if the wrapper instance is the same as the
wrapper instance being passed in
Parameters: xaresource - An XAResource object True if same RM instance, otherwise false. throws: XAException - no throw in this implementation |
prepare | public int prepare(Xid xid) throws XAException(Code) | | No method to map for a local transaction, just return XA_OK.
Parameters: xid - transaction xid |
recover | public Xid[] recover(int i) throws XAException(Code) | | No method to map for a local transaction.
|
rollback | public void rollback(Xid xid) throws XAException(Code) | | Rollback the localTransaction, the param isn't used for a
local transaction.
Parameters: xid - transaction xid exception: XAException - Exception trying to rollback local transaction |
setTransactionTimeout | public boolean setTransactionTimeout(int i) throws XAException(Code) | | No method to map for a local transaction, just
return no timeout.
|
start | public void start(Xid xid, int i) throws XAException(Code) | | Only start a local transaction if a new transaction is being
attempted, just return if joining or resuming.
Parameters: xid - transaction xid exception: XAException - Transaction already started or errorstarting a new local transaction |
|
|