| Package | Description |
|---|---|
| com.litongjava.db.activerecord |
| Modifier and Type | Class and Description |
|---|---|
class |
BatchSaveFetchGeneratedKey
Db.batchSave 支持获取生成的主键值
配置方式:
arp.setDbProFactory(configName -> new DbProBatchSaveFetchGeneratedKey(configName));
|
| Modifier and Type | Field and Description |
|---|---|
protected DbPro |
DbTemplate.db |
| Modifier and Type | Method and Description |
|---|---|
DbPro |
IDbProFactory.getDbPro(String configName) |
static DbPro |
Db.use() |
static DbPro |
Db.use(String configName) |
static DbPro |
Db.useRead() |
static DbPro |
Db.useReplica() |
static DbPro |
Db.useReplica(int i) |
static DbPro |
Db.useReplica(String configName) |
| Constructor and Description |
|---|
DbTemplate(boolean byString,
DbPro db,
String content,
Map<?,?> data) |
DbTemplate(boolean byString,
DbPro db,
String content,
Object... paras) |
DbTemplate(DbPro db,
String key,
Map<?,?> data) |
DbTemplate(DbPro db,
String key,
Object... paras) |
Copyright © 2025. All rights reserved.