public interface TransactionManage
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<String,TransactionManage> |
instances |
static Log |
log |
static Map<TransactionState,TransactionManage> |
records |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
commit(TransactionState state)
提交事务
|
static TransactionManage |
instance(String datasource) |
static TransactionManage |
instance(TransactionState state) |
static void |
reg(String datasource,
TransactionManage instance) |
void |
rollback(TransactionState state)
回滚事务
|
default TransactionState |
start()
启动事务
更多参数调用start(TransactionDefine define)
|
default TransactionState |
start(int behavior)
启动事务
|
TransactionState |
start(TransactionDefine define)
启动事务
|
static final Log log
static final Map<TransactionState,TransactionManage> records
static final Map<String,TransactionManage> instances
static void reg(String datasource, TransactionManage instance)
static TransactionManage instance(TransactionState state)
static TransactionManage instance(String datasource)
TransactionState start(TransactionDefine define) throws SQLException
define - 事务定义相关参数SQLExceptiondefault TransactionState start(int behavior) throws SQLException
SQLExceptiondefault TransactionState start() throws SQLException
SQLExceptionvoid commit(TransactionState state) throws SQLException
state - 启动事务时返回stateSQLExceptionvoid rollback(TransactionState state) throws SQLException
state - 启动事务时返回stateSQLExceptionCopyright © 2025. All rights reserved.