| Modifier and Type | Field and Description |
|---|---|
| pack-priv NetXACallInfo[] | |
| pack-priv NetConnection | |
| pack-priv SqlException | |
| private static final int | |
| private boolean | |
| pack-priv NetXAConnection | |
| pack-priv static final ClientXid | |
| private int | timeoutSeconds
The value of the transaction timeout in seconds. |
| pack-priv static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv static final int | |
| private static final int | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | commit(Xid
A global transaction identifier xid, boolean If true, the resource manager should use a one-phase
commit protocol to commit the work done on behalf of xid. onePhase)Implements javax. |
| private void | |
| public void | end(Xid
A global transaction identifier that is the same as what was used previously in the start method. xid, int One of TMSUCCESS, TMFAIL, or TMSUSPEND flags)Implements javax. Ends the work performed on behalf of a transaction branch. |
| public void | forget(Xid
A global transaction identifier xid)Implements javax. |
| private int | Returns: XAException.XAER_RMFAIL for disconnect exception, XAException.XAER_RMERR for other exceptions.SqlException to evaluate. sqle)Get XAException.errorCode from SqlException For disconnect exception, return XAER_RMFAIL For other exceptions return XAER_RMERR For server side SQLExceptions during XA operations the errorCode has already been determined and wrapped in an XAException for return to the client. |
| public int | Returns: the transaction timeout value in seconds. If the returned value is equal to Integer.MAX_VALUE it means no timeout.Implements javax. |
| private String | |
| private String | |
| public boolean | isSameRM(XAResource
An XAResource object whose resource manager instance
is to be compared with the resource manager instance of the
target object. xares)Implements javax. |
| public boolean | |
| public int | Returns: A value indicating the resource manager's vote on the outcome of the transaction. The possible values are: XA_RDONLY or XA_OK. If the resource manager wants to roll back the transaction, it should do so by raising an appropriate XAException in the prepare method.A global transaction identifier xid)Implements javax. |
| private String | |
| public Xid[] | Returns: The resource manager returns zero or more XIDs for the transaction branches that are currently in a prepared or heuristically completed state. If an error occurs during the operation, the resource manager should raise the appropriate XAException.One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS. TMNOFLAGS must be used when no other flags are set in
flags. flag)Implements javax. |
| public void | rollback(Xid
A global transaction identifier xid)Implements javax. |
| public void | |
| public boolean | Returns: true if transaction timeout value is set successfully; otherwise false.the transaction timeout value in seconds.
Value of 0 means the reasource manager's default value.
Value of Integer.MAX_VALUE means no timeout. seconds)Implements javax. |
| private void | setXaStateForXAException(int
// return code from XAException rc)Reset the transaction branch association state to XA_T0_NOT_ASSOCIATED for XAER_RM* and XA_RB* Exceptions. |
| public synchronized void | start(Xid
A global transaction identifier to be associated with the resource xid, int One of TMNOFLAGS, TMJOIN, or TMRESUME flags)Implements javax. |
| private void | |
| protected int | |
| public static boolean |
| callInfoArray_ | back to summary |
|---|---|
| pack-priv NetXACallInfo[] callInfoArray_ | |
| conn_ | back to summary |
|---|---|
| pack-priv NetConnection conn_ | |
| exceptionsOnXA | back to summary |
|---|---|
| pack-priv SqlException exceptionsOnXA | |
| INITIAL_CALLINFO_ELEMENTS | back to summary |
|---|---|
| private static final int INITIAL_CALLINFO_ELEMENTS | |
| keepIsolationLevel | back to summary |
|---|---|
| private boolean keepIsolationLevel | |
| netXAConn_ | back to summary |
|---|---|
| pack-priv NetXAConnection netXAConn_ | |
| nullXid | back to summary |
|---|---|
| pack-priv static final ClientXid nullXid | |
| timeoutSeconds | back to summary |
|---|---|
| private int timeoutSeconds The value of the transaction timeout in seconds. | |
| XAFUNC_COMMIT | back to summary |
|---|---|
| pack-priv static final int XAFUNC_COMMIT | |
| XAFUNC_END | back to summary |
|---|---|
| private static final int XAFUNC_END | |
| XAFUNC_FORGET | back to summary |
|---|---|
| private static final int XAFUNC_FORGET | |
| XAFUNC_PREPARE | back to summary |
|---|---|
| private static final int XAFUNC_PREPARE | |
| XAFUNC_RECOVER | back to summary |
|---|---|
| private static final int XAFUNC_RECOVER | |
| XAFUNC_ROLLBACK | back to summary |
|---|---|
| pack-priv static final int XAFUNC_ROLLBACK | |
| XAFUNC_START | back to summary |
|---|---|
| private static final int XAFUNC_START | |
| XAFUNCSTR_COMMIT | back to summary |
|---|---|
| private static final String XAFUNCSTR_COMMIT | |
| XAFUNCSTR_END | back to summary |
|---|---|
| private static final String XAFUNCSTR_END | |
| XAFUNCSTR_FORGET | back to summary |
|---|---|
| private static final String XAFUNCSTR_FORGET | |
| XAFUNCSTR_NONE | back to summary |
|---|---|
| private static final String XAFUNCSTR_NONE | |
| XAFUNCSTR_PREPARE | back to summary |
|---|---|
| private static final String XAFUNCSTR_PREPARE | |
| XAFUNCSTR_RECOVER | back to summary |
|---|---|
| private static final String XAFUNCSTR_RECOVER | |
| XAFUNCSTR_ROLLBACK | back to summary |
|---|---|
| private static final String XAFUNCSTR_ROLLBACK | |
| XAFUNCSTR_START | back to summary |
|---|---|
| private static final String XAFUNCSTR_START | |
| NetXAResource | back to summary |
|---|---|
| public NetXAResource(XAConnection xaconn, NetXAConnection conn) | |
| commit | back to summary |
|---|---|
| public void commit(Xid xid, boolean onePhase) throws XAException Implements javax. Doc from javax. Commits the global transaction specified by xid.
| |
| connectionClosedFailure | back to summary |
|---|---|
| private void connectionClosedFailure() throws XAException | |
| end | back to summary |
|---|---|
| public void end(Xid xid, int flags) throws XAException Implements javax. Ends the work performed on behalf of a transaction branch. The resource manager dissociates the XA resource from the transaction branch specified and let the transaction be completed. If TMSUSPEND is specified in flags, the transaction branch is temporarily suspended in incomplete state. The transaction context is in suspened state and must be resumed via start with TMRESUME specified. If TMFAIL is specified, the portion of work has failed. The resource manager may mark the transaction as rollback-only If TMSUCCESS is specified, the portion of work has completed successfully.
| |
| forget | back to summary |
|---|---|
| public void forget(Xid xid) throws XAException Implements javax. Tell the resource manager to forget about a heuristically (MANUALLY) completed transaction branch.
| |
| getSqlExceptionXAErrorCode | back to summary |
|---|---|
| private int getSqlExceptionXAErrorCode(SqlException sqle) Get XAException.errorCode from SqlException For disconnect exception, return XAER_RMFAIL For other exceptions return XAER_RMERR For server side SQLExceptions during XA operations the errorCode has already been determined and wrapped in an XAException for return to the client. see EmbedXAResource.wrapInXAException
| |
| getTransactionTimeout | back to summary |
|---|---|
| public int getTransactionTimeout() throws XAException Implements javax. Obtain the current transaction timeout value set for this XAResource instance. If XAResource.setTransactionTimeout was not use prior to invoking this method, the return value is 0; otherwise, the value used in the previous setTransactionTimeout call is returned.
| |
| getXAExceptionText | back to summary |
|---|---|
| private String getXAExceptionText(int rc) | |
| getXAFuncStr | back to summary |
|---|---|
| private String getXAFuncStr(int xaFunc) | |
| isSameRM | back to summary |
|---|---|
| public boolean isSameRM(XAResource xares) throws XAException Implements javax. Doc from javax. This method is called to determine if the resource manager instance represented by the target object is the same as the resource manager instance represented by the parameter xares.
| |
| keepCurrentIsolationLevel | back to summary |
|---|---|
| public boolean keepCurrentIsolationLevel() | |
| prepare | back to summary |
|---|---|
| public int prepare(Xid xid) throws XAException Implements javax. Ask the resource manager to prepare for a transaction commit of the transaction specified in xid.
| |
| processLocalHost | back to summary |
|---|---|
| private String processLocalHost(String serverName) | |
| recover | back to summary |
|---|---|
| public Xid[] recover(int flag) throws XAException Implements javax. Obtain a list of prepared transaction branches from a resource manager. The transaction manager calls this method during recovery to obtain the list of transaction branches that are currently in prepared or heuristically completed states.
| |
| rollback | back to summary |
|---|---|
| public void rollback(Xid xid) throws XAException Implements javax. Inform the resource manager to roll back work done on behalf of a transaction branch
| |
| setKeepCurrentIsolationLevel | back to summary |
|---|---|
| public void setKeepCurrentIsolationLevel(boolean flag) | |
| setTransactionTimeout | back to summary |
|---|---|
| public boolean setTransactionTimeout(int seconds) throws XAException Implements javax. Set the current transaction timeout value for this XAResource instance. Once set, this timeout value is effective until setTransactionTimeout is invoked again with a different value. To reset the timeout value to the default value used by the resource manager, set the value to zero. If the timeout operation is performed successfully, the method returns true; otherwise false. If a resource manager does not support transaction timeout value to be set explicitly, this method returns false.
| |
| setXaStateForXAException | back to summary |
|---|---|
| private void setXaStateForXAException(int rc) Reset the transaction branch association state to XA_T0_NOT_ASSOCIATED for XAER_RM* and XA_RB* Exceptions. All other exceptions leave the state unchanged
| |
| start | back to summary |
|---|---|
| public synchronized void start(Xid xid, int flags) throws XAException Implements javax. Start work on behalf of a transaction branch specified in xid
| |
| throwXAException | back to summary |
|---|---|
| private void throwXAException(int rc) throws XAException | |
| xaRetValErrorAccumSQL | back to summary |
|---|---|
| protected int xaRetValErrorAccumSQL(NetXACallInfo callInfo, int currentRC) | |
| xidsEqual | back to summary |
|---|---|
| public static boolean xidsEqual(Xid xid1, Xid xid2) | |