|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttyrex.tm.impl.XAResourceHelper
This class describes various methods to help the transaction manipulate XA resources from database vendors that don't comply fully with the XA specification.
| Constructor Summary | |
XAResourceHelper()
Default constructor |
|
| Method Summary | |
java.lang.String |
getXAErrorString(javax.transaction.xa.XAException xaException)
Return the specialised error message from the XAException. |
javax.transaction.xa.Xid |
getXid(javax.transaction.xa.XAResource xaResource,
javax.transaction.xa.Xid xid)
Create the xid for use with the XA resource from the specified xid. |
boolean |
treatDifferentBranchesForSharedResourcesAsShared()
Return true if shared xa resources can be treated as shared even if they use different branches so that these xa resources are not prepared/committed separately even if they don't have the same xid. |
boolean |
useDifferentBranchesForSharedResources()
Return true if shared xa resources must use different branches when enlisted in the transaction.The resource may still be treated as shared in that prepare/commit is only called once on a single xa resource (@see #treatDifferentBranchesForSharedResourcesAsShared}). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XAResourceHelper()
| Method Detail |
public javax.transaction.xa.Xid getXid(javax.transaction.xa.XAResource xaResource,
javax.transaction.xa.Xid xid)
throws javax.transaction.xa.XAException
The default implementation is to return the xid.
xaResource - The XAResourcexid - The xid
javax.transaction.xa.XAException - An error occured obtaining the xidpublic boolean useDifferentBranchesForSharedResources()
treatDifferentBranchesForSharedResourcesAsShared()public boolean treatDifferentBranchesForSharedResourcesAsShared()
useDifferentBranchesForSharedResources() returns true.
The default implementation returns false.
useDifferentBranchesForSharedResourcespublic java.lang.String getXAErrorString(javax.transaction.xa.XAException xaException)
xaException - the XAException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||