Incomplete - task 84: Fix samples
Fix column mapping in jdbc cursor - order is important.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user