Package | Description |
---|---|
cn.hutool.db |
Hutool-db是一个在JDBC基础上封装的数据库操作工具类,通过包装,使用ActiveRecord思想操作数据库。
|
cn.hutool.db.transaction |
事务相关类和操作
|
Modifier and Type | Method and Description |
---|---|
Db |
Db.tx(TransactionLevel transactionLevel,
VoidFunc1<Db> func)
执行事务
在同一事务中,所有对数据库操作都是原子的,同时提交或者同时回滚 |
Modifier and Type | Method and Description |
---|---|
static TransactionLevel |
TransactionLevel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionLevel[] |
TransactionLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2024. All rights reserved.