Package org.mariadb.jdbc
Class MariaDbPoolConnection.MariaDbXAResource
java.lang.Object
org.mariadb.jdbc.MariaDbPoolConnection.MariaDbXAResource
- All Implemented Interfaces:
XAResource
- Enclosing class:
MariaDbPoolConnection
-
Field Summary
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
private void
void
getConf()
int
boolean
isSameRM
(XAResource xaResource) int
Xid[]
recover
(int flags) void
boolean
setTransactionTimeout
(int i) void
-
Constructor Details
-
MariaDbXAResource
private MariaDbXAResource()
-
-
Method Details
-
execute
- Throws:
XAException
-
commit
- Specified by:
commit
in interfaceXAResource
- Throws:
XAException
-
end
- Specified by:
end
in interfaceXAResource
- Throws:
XAException
-
forget
- Specified by:
forget
in interfaceXAResource
-
getTransactionTimeout
public int getTransactionTimeout()- Specified by:
getTransactionTimeout
in interfaceXAResource
-
getConf
-
isSameRM
- Specified by:
isSameRM
in interfaceXAResource
-
prepare
- Specified by:
prepare
in interfaceXAResource
- Throws:
XAException
-
recover
- Specified by:
recover
in interfaceXAResource
- Throws:
XAException
-
rollback
- Specified by:
rollback
in interfaceXAResource
- Throws:
XAException
-
setTransactionTimeout
public boolean setTransactionTimeout(int i) - Specified by:
setTransactionTimeout
in interfaceXAResource
-
start
- Specified by:
start
in interfaceXAResource
- Throws:
XAException
-