English 中文(简体)
弹簧批量 - 使用维护时的旗帜更新日, 允许重新使用 JdbcBbBatchTroupWriter
原标题:spring batch - using flag on assertUpdates to allow reuse of JdbcBatchItemWriter

弹簧问题可能与弹簧问题一样多。

我想重新使用 JdbcBackTroundWitter, 在默认情况下, 它会维护“ 更新日期” 的正确性, 而在我的情况下, 它会维护“ 更新日期” = false 。

创建这一旗帜和在每份工作中设置不同标志的方法是什么? 我无法找出或找到一个范例。

谢谢 谢谢

更多信息-工作可以由石英或程序踢来安排。

问题回答
void setAssertUpdates(boolean assertUpdates) 

用于确定是否声称所有项目至少需要更新一行的旗帜的公用设置。

更多信息见:http://staphic.springsource.org/spring-batch/apidocs/org/springframework/batch/itect/database/JdbcBatchTroupWriter.html





相关问题
array dependency injection in spring?

is there a way to use dependency injection to inject all available implementations of a specific interface in spring? This is kind of the same thing as asked here for .NET. Though my aim is to use @...

Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...

How can I determine Objects in application context?

I am trying to write a portlet for Liferay (using Tomcat and Spring) and need to use a database via Persistence API/Hibernate. I am using some configuration XMLs (applicationContext.xml, etc.) and ...

How to prevent JPA from rolling back transaction?

Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call Everything including struts (DelegatingActionProxy) and transactions is configured ...

热门标签