| 限定符和类型 | 方法和说明 |
|---|---|
int |
Dao.saveBatch(Collection<T> list,
Consumer<SaveBatchStrategy<T>> saveBatchStrategy)
原生批量插入
|
<M extends Model<T>> |
Dao.saveModelBatch(Collection<M> list,
Consumer<SaveBatchStrategy<M>> saveBatchStrategy)
原生批量插入 实体类Model保存
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
BaseDaoImpl.saveBatch(Collection<T> list,
Consumer<SaveBatchStrategy<T>> saveBatchStrategy) |
<M extends Model<T>> |
BaseDaoImpl.saveModelBatch(Collection<M> list,
Consumer<SaveBatchStrategy<M>> saveBatchStrategy) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.conflictKeys(String... conflictKeys)
设置 争议/冲突字段
|
SaveBatchStrategy<T> |
SaveBatchStrategy.forceFields(Getter<T>... forceFields)
设置强制字段 - null值字段 将会被修改成NULL
|
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
SaveMapper.saveBatch(Collection<T> list,
Consumer<SaveBatchStrategy<T>> saveBatchStrategy)
使用数据库原生方式批量插入
一次最好在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>> saveBatchStrategy)
使用数据库原生方式批量插入
一次最好在100条内
|
default <T,M extends Model<T>> |
SaveModelBasicMapper.saveModelBatch(Collection<M> list,
Consumer<SaveBatchStrategy<M>> 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) |
static <E> int |
SaveMethodUtil.saveBatch(BasicMapper basicMapper,
Collection<E> list,
SaveBatchStrategy saveBatchStrategy) |
static <M extends Model> |
SaveModelMethodUtil.saveBatch(BasicMapper basicMapper,
Collection<M> list,
SaveBatchStrategy saveBatchStrategy) |
static <T> int |
SaveMethodUtil.saveBatch(BasicMapper basicMapper,
TableInfo tableInfo,
Collection<T> list,
SaveBatchStrategy<T> saveBatchStrategy) |
Copyright © 2025. All rights reserved.