| Package | Description |
|---|---|
| com.mybatisflex.core.row |
Db + Row 功能。
|
| com.mybatisflex.core.transaction |
事务功能。
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Db.tx(Supplier<Boolean> supplier,
Propagation propagation)
进行事务操作,返回 null 或者 false 或者 抛出异常, 事务回滚
|
static <T> T |
Db.txWithResult(Supplier<T> supplier,
Propagation propagation)
进行事务操作,和返回结果无关,只有抛出异常时,事务回滚
|
| Modifier and Type | Method and Description |
|---|---|
static Propagation |
Propagation.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Propagation[] |
Propagation.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
TransactionalManager.exec(Supplier<T> supplier,
Propagation propagation,
boolean withResult) |
Copyright © 2024. All rights reserved.