Package org.mybatis.guice.transactional
Class XASqlSessionManager
java.lang.Object
org.mybatis.guice.transactional.XASqlSessionManager
- All Implemented Interfaces:
XAResource
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
-
Constructor Summary
ConstructorDescriptionXASqlSessionManager
(org.apache.ibatis.session.SqlSessionManager sqlSessionManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
getId()
int
getState()
int
boolean
isSameRM
(XAResource xares) int
Xid[]
recover
(int flags) void
boolean
setTransactionTimeout
(int second) void
-
Field Details
-
NO_TX
public static final int NO_TX- See Also:
-
STARTED
public static final int STARTED- See Also:
-
ENDED
public static final int ENDED- See Also:
-
PREPARED
public static final int PREPARED- See Also:
-
-
Constructor Details
-
XASqlSessionManager
public XASqlSessionManager(org.apache.ibatis.session.SqlSessionManager sqlSessionManager)
-
-
Method Details
-
getId
-
getState
public int getState() -
getTransactionTimeout
- Specified by:
getTransactionTimeout
in interfaceXAResource
- Throws:
XAException
-
setTransactionTimeout
- Specified by:
setTransactionTimeout
in interfaceXAResource
- Throws:
XAException
-
forget
- Specified by:
forget
in interfaceXAResource
- Throws:
XAException
-
recover
- Specified by:
recover
in interfaceXAResource
- Throws:
XAException
-
isSameRM
- Specified by:
isSameRM
in interfaceXAResource
- Throws:
XAException
-
start
- Specified by:
start
in interfaceXAResource
- Throws:
XAException
-
end
- Specified by:
end
in interfaceXAResource
- Throws:
XAException
-
prepare
- Specified by:
prepare
in interfaceXAResource
- Throws:
XAException
-
commit
- Specified by:
commit
in interfaceXAResource
- Throws:
XAException
-
rollback
- Specified by:
rollback
in interfaceXAResource
- Throws:
XAException
-