T - public class MybatisFlexBatchItemWriter<T> extends Object implements org.springframework.batch.item.ItemWriter<T>, org.springframework.beans.factory.InitializingBean
| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
assertUpdates |
private static org.mybatis.logging.Logger |
LOGGER |
private BaseMapper<T> |
mapper |
| 构造器和说明 |
|---|
MybatisFlexBatchItemWriter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet()
Check mandatory properties - there must be an SqlSession and a statementId.
|
void |
setAssertUpdates(boolean assertUpdates)
Public setter for the flag that determines whether an assertion is made that number of BatchResult objects returned
is one and all items cause at least one row to be updated.
|
void |
setMapper(BaseMapper<T> mapper)
mapper对象
|
void |
write(List<? extends T> items) |
private static final org.mybatis.logging.Logger LOGGER
private BaseMapper<T> mapper
private boolean assertUpdates
public MybatisFlexBatchItemWriter()
public void setAssertUpdates(boolean assertUpdates)
assertUpdates - the flag to set. Defaults to true;public void setMapper(BaseMapper<T> mapper)
mapper - public void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanCopyright © 2025. All rights reserved.