| 限定符和类型 | 方法和说明 |
|---|---|
int |
BaseDaoImpl.saveBatch(Collection<T> list,
Consumer<SaveBatchStrategy<T>> consumer) |
<M extends Model<T>> |
BaseDaoImpl.saveModelBatch(Collection<M> list,
Consumer<SaveBatchStrategy<M>> consumer) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends Model> |
ModelBatchInsertCreateUtil.create(BaseInsert<?> insert,
ModelInfo modelInfo,
T[] insertData,
SaveBatchStrategy<T> saveBatchStrategy,
DbType dbType,
boolean useBatchExecutor) |
static <T> BaseInsert<?> |
EntityBatchInsertCreateUtil.create(BaseInsert<?> insert,
TableInfo tableInfo,
T[] insertData,
SaveBatchStrategy<T> saveBatchStrategy,
DbType dbType,
boolean useBatchExecutor) |
| 构造器和说明 |
|---|
EntityBatchInsertContext(BaseInsert<?> insert,
TableInfo tableInfo,
Collection<T> list,
SaveBatchStrategy<T> saveBatchStrategy) |
ModelBatchInsertContext(BaseInsert<?> insert,
ModelInfo modelInfo,
Collection<M> list,
SaveBatchStrategy<M> saveBatchStrategy) |
| 限定符和类型 | 方法和说明 |
|---|---|
SaveBatchStrategy<T> |
SaveBatchStrategy.conflictKeys(Getter<T>... conflictKeys) |
SaveBatchStrategy<T> |
SaveBatchStrategy.forceFields(Getter<T>... forceFields) |
SaveBatchStrategy<T> |
SaveBatchStrategy.onConflict(Consumer<db.sql.api.cmd.basic.IConflictAction<T>> conflictAction) |
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
SaveMapper.saveBatch(Collection<T> list,
Consumer<SaveBatchStrategy<T>> strategy)
使用数据库原生方式批量插入
一次最好在100条内
|
default <M extends Model<T>> |
SaveModelMapper.saveModelBatch(Collection<M> list,
Consumer<SaveBatchStrategy<M>> strategy)
使用数据库原生方式批量插入
一次最好在100条内
|
| 限定符和类型 | 方法和说明 |
|---|---|
default <T> int |
SaveBasicMapper.saveBatch(Collection<T> list,
Consumer<SaveBatchStrategy<T>> strategy)
使用数据库原生方式批量插入
一次最好在100条内
|
default <T,M extends Model<T>> |
SaveModelBasicMapper.saveModelBatch(Collection<M> list,
Consumer<SaveBatchStrategy<T>> strategy)
使用数据库原生方式批量插入
一次最好在100条内
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <M extends Model> |
SaveModelMethodUtil.saveBatch(BasicMapper basicMapper,
BaseInsert<?> insert,
Collection<M> list,
SaveBatchStrategy<M> saveBatchStrategy) |
static <E> int |
SaveMethodUtil.saveBatch(BasicMapper basicMapper,
BaseInsert<?> insert,
TableInfo tableInfo,
Collection<E> list,
SaveBatchStrategy<E> saveBatchStrategy) |
Copyright © 2025. All rights reserved.