public interface InsertExecute<T> extends BoundSqlBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
InsertExecute<T> |
applyEntity(List<T> entity)
批量插入记录
|
default InsertExecute<T> |
applyEntity(T entity)
批量插入记录
|
InsertExecute<T> |
applyMap(List<Map<String,Object>> columnMapList)
批量插入记录,map key 为列名
|
default InsertExecute<T> |
applyMap(Map<String,Object> columnMap)
批量插入记录,map key 为列名
|
int[] |
executeGetResult()
执行插入,并返回所有结果
|
default int |
executeSumResult()
执行插入,并且将返回的int结果相加。
|
InsertExecute<T> |
onDuplicateStrategy(DuplicateKeyStrategy strategy)
insert 策略,默认策略是
DuplicateKeyStrategy.Into |
getBoundSql, getBoundSqldefault int executeSumResult()
throws SQLException
SQLExceptionint[] executeGetResult()
throws SQLException
SQLExceptionInsertExecute<T> onDuplicateStrategy(DuplicateKeyStrategy strategy)
DuplicateKeyStrategy.Intodefault InsertExecute<T> applyEntity(T entity)
InsertExecute<T> applyEntity(List<T> entity)
default InsertExecute<T> applyMap(Map<String,Object> columnMap)
Copyright © 2021. All rights reserved.