Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Spring批处理中实现updateif-Exist-else-INSERT_Spring_Batch File - Fatal编程技术网

如何在Spring批处理中实现updateif-Exist-else-INSERT

如何在Spring批处理中实现updateif-Exist-else-INSERT,spring,batch-file,Spring,Batch File,我的批处理从一个表读取数据,处理并写入另一个表。 我有MyBatisPagingITemReader、自定义处理器和编写器 当前,Custom Writer插入在processor中转换的数据,Writer对另一个表进行批插入 现在,读卡器将读取另一个表中需要更新的一些行。在这种情况下,我的写卡器也应该能够批量更新这些记录 实施它的最佳方式是什么 这就是我被困的地方 我的作家 public void write(final List unmodifiableItems) throws Exce

我的批处理从一个表读取数据,处理并写入另一个表。 我有MyBatisPagingITemReader、自定义处理器和编写器

当前,Custom Writer插入在processor中转换的数据,Writer对另一个表进行批插入

现在,读卡器将读取另一个表中需要更新的一些行。在这种情况下,我的写卡器也应该能够批量更新这些记录

实施它的最佳方式是什么

这就是我被困的地方 我的作家

 public void write(final List unmodifiableItems) throws Exception {
 // unmodifiable items will be a list of row to be inserted.....
    }
如何访问需要更新的记录列表