public final class TranManager
extends java.lang.Object
构造器和说明 |
---|
TranManager() |
限定符和类型 | 方法和说明 |
---|---|
static DbTran |
current()
获取当前事务
|
static void |
currentRemove()
移移当前事务
|
static void |
currentSet(DbTran tran)
设置当前事务
|
static <T> void |
routing(java.lang.Class<T> dsClz,
RoutingDataSourceMapping<T> mapping)
路由记录登记
|
static RoutingDataSourceMapping |
routingGet(javax.sql.DataSource original)
路由映射获取
|
static void |
tryResume(DbTran tran)
尝试恢复
|
static DbTran |
trySuspend()
尝试挂起
|
public static <T> void routing(java.lang.Class<T> dsClz, RoutingDataSourceMapping<T> mapping)
public static RoutingDataSourceMapping routingGet(javax.sql.DataSource original)
public static void currentSet(DbTran tran)
tran
- 事务public static DbTran current()
public static void currentRemove()
public static DbTran trySuspend()
public static void tryResume(DbTran tran)