OPEN - issue BATCH-788: Remove flush/clear from ItemWriter

Infrastructure and core working with no calls to flush (I think)
This commit is contained in:
dsyer
2008-08-20 08:06:18 +00:00
parent 198b38f459
commit a4c8399e72
17 changed files with 111 additions and 357 deletions

View File

@@ -442,9 +442,7 @@ public class SkipLimitStepFactoryBeanTests extends TestCase {
protected final Log logger = LogFactory.getLog(getClass());
private List<Object> written = new ArrayList<Object>();
private int flushIndex = -1;
private List<Object> written = TransactionAwareProxyFactory.createTransactionalList();
private final Collection<String> failures;
@@ -461,13 +459,9 @@ public class SkipLimitStepFactoryBeanTests extends TestCase {
}
public void clear() throws ClearFailedException {
for (int i = flushIndex + 1; i < written.size(); i++) {
written.remove(written.size() - 1);
}
}
public void flush() throws FlushFailedException {
flushIndex = written.size() - 1;
}
public void write(List<? extends String> items) throws Exception {