Incomplete - task 84: Fix samples

Fix column mapping in jdbc cursor - order is important.
This commit is contained in:
dsyer
2008-02-26 10:41:30 +00:00
parent d20c76b0a7
commit 7f0be2826e
35 changed files with 199 additions and 283 deletions

View File

@@ -66,13 +66,6 @@ public class GeneratingItemReader extends AbstractItemReaderRecoverer implements
}
/* (non-Javadoc)
* @see org.springframework.batch.item.ItemStream#isMarkSupported()
*/
public boolean isMarkSupported() {
return true;
}
/* (non-Javadoc)
* @see org.springframework.batch.item.ItemStream#mark()
*/
@@ -96,7 +89,7 @@ public class GeneratingItemReader extends AbstractItemReaderRecoverer implements
/* (non-Javadoc)
* @see org.springframework.batch.item.ExecutionContextProvider#getExecutionContext()
*/
public void beforeSave() {
public void update() {
}
public void open(ExecutionContext context) throws StreamException {

View File

@@ -203,16 +203,7 @@ public class StagingItemReader extends JdbcDaoSupport implements ItemStream, Key
* {@link TransactionSynchronizationManager#bindResource(Object, Object)}),
* so they are thread bound.
*
* @see org.springframework.batch.item.ItemStream#isMarkSupported()
*/
public boolean isMarkSupported() {
return true;
}
/*
* (non-Javadoc)
*
* @see org.springframework.batch.item.ItemStream#mark(org.springframework.batch.item.ExecutionContext)
* @see org.springframework.batch.item.ItemReader#mark()
*/
public void mark() {
getBuffer().commit();
@@ -232,7 +223,7 @@ public class StagingItemReader extends JdbcDaoSupport implements ItemStream, Key
*
* @see org.springframework.batch.item.ExecutionContextProvider#getExecutionContext()
*/
public void beforeSave() {
public void update() {
}
}

View File

@@ -76,7 +76,7 @@ public class SimpleTradeWriter extends AbstractItemWriter implements ItemStream
/* (non-Javadoc)
* @see org.springframework.batch.item.ExecutionContextProvider#getExecutionContext()
*/
public void beforeSave() {
public void update() {
executionContext.putLong("trade.count", tradeCount);
}