public class LambdaInsertWrapper<T> extends AbstractExecute<T> implements LambdaOperations.LambdaInsert<T>
dbType| 构造器和说明 |
|---|
LambdaInsertWrapper(TableMapping<T> tableMapping,
LambdaTemplate jdbcTemplate) |
| 限定符和类型 | 方法和说明 |
|---|---|
InsertExecute<T> |
applyEntity(List<T> entityList)
批量插入记录
|
InsertExecute<T> |
applyMap(List<Map<String,Object>> columnMapList)
批量插入记录,map key 为列名
|
protected BatchBoundSql |
buildBatchBoundSql(String batchSql) |
protected BoundSql |
dialectInsert(InsertSqlDialect dialect) |
int[] |
executeGetResult()
执行插入,并返回所有结果
|
BoundSql |
getBoundSql() |
BoundSql |
getBoundSql(SqlDialect dialect) |
protected List<ColumnMapping> |
getInsertProperties() |
protected List<ColumnMapping> |
getPrimaryKeyColumns() |
InsertExecute<T> |
onDuplicateStrategy(DuplicateKeyStrategy insertStrategy)
insert 策略,默认策略是
DuplicateKeyStrategy.Into |
LambdaOperations.LambdaInsert<T> |
useQualifier() |
buildTabName, dialect, enableQualifier, exampleType, getJdbcTemplate, getTableMapping, isQualifier, setDialectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexampleTypeapplyEntity, applyMap, executeSumResultpublic LambdaInsertWrapper(TableMapping<T> tableMapping, LambdaTemplate jdbcTemplate)
public LambdaOperations.LambdaInsert<T> useQualifier()
public InsertExecute<T> onDuplicateStrategy(DuplicateKeyStrategy insertStrategy)
InsertExecuteDuplicateKeyStrategy.IntoonDuplicateStrategy 在接口中 InsertExecute<T>protected List<ColumnMapping> getInsertProperties()
protected List<ColumnMapping> getPrimaryKeyColumns()
public InsertExecute<T> applyEntity(List<T> entityList)
InsertExecuteapplyEntity 在接口中 InsertExecute<T>public InsertExecute<T> applyMap(List<Map<String,Object>> columnMapList)
InsertExecuteapplyMap 在接口中 InsertExecute<T>public BoundSql getBoundSql()
getBoundSql 在接口中 BoundSqlBuilderpublic BoundSql getBoundSql(SqlDialect dialect)
getBoundSql 在接口中 BoundSqlBuilderpublic int[] executeGetResult()
throws SQLException
InsertExecuteexecuteGetResult 在接口中 InsertExecute<T>SQLExceptionprotected BoundSql dialectInsert(InsertSqlDialect dialect)
protected BatchBoundSql buildBatchBoundSql(String batchSql)
Copyright © 2021. All rights reserved.