BATCH-1537: use startAfterValue to make restart more efficient in JdbcPagingItemReader

This commit is contained in:
dsyer
2010-03-26 11:00:25 +00:00
parent 0c4162296f
commit 43b72a8150
3 changed files with 75 additions and 45 deletions

View File

@@ -68,6 +68,7 @@ public class JdbcPagingRestartIntegrationTests {
ExecutionContext executionContext = new ExecutionContext();
int count = SimpleJdbcTestUtils.countRowsInTable(jdbcTemplate, "CUSTOMER")-2;
executionContext.putInt("JdbcPagingItemReader.read.count", count);
executionContext.putInt("JdbcPagingItemReader.start.after", 2);
((ItemStream)reader).open(executionContext);
CustomerCredit item = reader.read();
// System.err.println(item);