| Modifier and Type | Field and Description |
|---|---|
| private Log | |
| protected boolean | |
| private static final int | |
| private static final Map | |
| private JdbcConnection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| 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. Commits the global transaction specified by xid. |
| private ResultSet | |
| public void | end(Xid
A global transaction identifier that is the same as
the identifier used previously in the xid, int start method.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. Tells the resource manager to forget about a heuristically completed transaction branch. |
| public Connection | getConnection()
Overrides com. Implements javax. Creates and returns a |
| protected static MysqlXAConnection | |
| public int | getTransactionTimeout()
Implements javax. Obtains the current transaction timeout value set for this XAResource instance. |
| public XAResource | getXAResource()
Implements javax. Retrieves an |
| 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. 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. |
| protected static XAException | |
| public int | prepare(Xid
A global transaction identifier. xid)Implements javax. Ask the resource manager to prepare for a transaction commit of the transaction specified in xid. |
| public Xid[] | recover(int
One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS. TMNOFLAGS
must be used when no other flags are set in the parameter. flag)Implements javax. Obtains a list of prepared transaction branches from a resource manager. |
| protected static Xid[] | |
| public void | rollback(Xid
A global transaction identifier. xid)Implements javax. Informs the resource manager to roll back work done on behalf of a transaction branch. |
| public boolean | setTransactionTimeout(int
The transaction timeout value in seconds. arg0)Implements javax. Sets the current transaction timeout value for this |
| public void | start(Xid
A global transaction identifier to be associated
with the resource. xid, int One of TMNOFLAGS, TMJOIN, or TMRESUME. flags)Implements javax. Starts work on behalf of a transaction branch specified in
|
| log | back to summary |
|---|---|
| private Log log | |
| logXaCommands | back to summary |
|---|---|
| protected boolean logXaCommands | |
| MAX_COMMAND_LENGTH | back to summary |
|---|---|
| private static final int MAX_COMMAND_LENGTH | |
| MYSQL_ERROR_CODES_TO_XA_ERROR_CODES | back to summary |
|---|---|
| private static final Map<Integer, Integer> MYSQL_ERROR_CODES_TO_XA_ERROR_CODES | |
| underlyingConnection | back to summary |
|---|---|
| private JdbcConnection underlyingConnection | |
| MysqlXAConnection | back to summary |
|---|---|
| public MysqlXAConnection(JdbcConnection connection, boolean logXaCommands) | |
| appendXid | back to summary |
|---|---|
| private static void appendXid(StringBuilder builder, Xid xid) | |
| 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.
| |
| dispatchCommand | back to summary |
|---|---|
| private ResultSet dispatchCommand(String command) throws XAException | |
| end | back to summary |
|---|---|
| public void end(Xid xid, int flags) throws XAException Implements javax. Doc from javax. Ends the work performed on behalf of a transaction branch. The resource manager disassociates the XA resource from the transaction branch specified and lets the transaction complete. If TMSUSPEND is specified in the flags, the transaction branch
is temporarily suspended in an incomplete state. The transaction
context is in a suspended state and must be resumed via the
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. Doc from javax. Tells the resource manager to forget about a heuristically completed transaction branch.
| |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() throws SQLException Overrides com. Implements javax. Doc from javax. Creates and returns a
| |
| getInstance | back to summary |
|---|---|
| protected static MysqlXAConnection getInstance(JdbcConnection mysqlConnection, boolean logXaCommands) throws SQLException | |
| getTransactionTimeout | back to summary |
|---|---|
| public int getTransactionTimeout() throws XAException Implements javax. Doc from javax. Obtains the current transaction timeout value set for this
XAResource instance. If
| |
| getXAResource | back to summary |
|---|---|
| public XAResource getXAResource() throws SQLException Implements javax. Doc from javax. Retrieves an
| |
| 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.
| |
| mapXAExceptionFromSQLException | back to summary |
|---|---|
| protected static XAException mapXAExceptionFromSQLException(SQLException sqlEx) | |
| prepare | back to summary |
|---|---|
| public int prepare(Xid xid) throws XAException Implements javax. Doc from javax. Ask the resource manager to prepare for a transaction commit of the transaction specified in xid.
| |
| recover | back to summary |
|---|---|
| public Xid[] recover(int flag) throws XAException Implements javax. Doc from javax. Obtains 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.
| |
| recover | back to summary |
|---|---|
| protected static Xid[] recover(Connection c, int flag) throws XAException | |
| rollback | back to summary |
|---|---|
| public void rollback(Xid xid) throws XAException Implements javax. Doc from javax. Informs the resource manager to roll back work done on behalf of a transaction branch.
| |
| setTransactionTimeout | back to summary |
|---|---|
| public boolean setTransactionTimeout(int arg0) throws XAException Implements javax. Doc from javax. Sets the current transaction timeout value for this
| |
| start | back to summary |
|---|---|
| public void start(Xid xid, int flags) throws XAException Implements javax. Doc from javax. Starts work on behalf of a transaction branch specified in
| |