| 程序包 | 说明 |
|---|---|
| net.hasor.db.lambda |
提供单表的 CURD 能力,并提供 lambda 方式操作操作数据库。
|
| net.hasor.db.lambda.core |
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
LambdaOperations.LambdaInsert<T>
lambda insert
|
| 限定符和类型 | 方法和说明 |
|---|---|
InsertExecute<T> |
InsertExecute.applyEntity(List<T> entity)
批量插入记录
|
default InsertExecute<T> |
InsertExecute.applyEntity(T entity)
批量插入记录
|
InsertExecute<T> |
InsertExecute.applyMap(List<Map<String,Object>> columnMapList)
批量插入记录,map key 为列名
|
default InsertExecute<T> |
InsertExecute.applyMap(Map<String,Object> columnMap)
批量插入记录,map key 为列名
|
InsertExecute<T> |
InsertExecute.onDuplicateStrategy(DuplicateKeyStrategy strategy)
insert 策略,默认策略是
DuplicateKeyStrategy.Into |
| 限定符和类型 | 类和说明 |
|---|---|
class |
LambdaInsertWrapper<T>
提供 lambda insert 能力。
|
| 限定符和类型 | 方法和说明 |
|---|---|
InsertExecute<T> |
LambdaInsertWrapper.applyEntity(List<T> entityList) |
InsertExecute<T> |
LambdaInsertWrapper.applyMap(List<Map<String,Object>> columnMapList) |
InsertExecute<T> |
LambdaInsertWrapper.onDuplicateStrategy(DuplicateKeyStrategy insertStrategy) |
Copyright © 2021. All rights reserved.