Purge StreamContext some more

This commit is contained in:
dsyer
2008-02-05 09:34:13 +00:00
parent 1479d4c53d
commit 8c1cb2808f
51 changed files with 266 additions and 361 deletions

View File

@@ -215,33 +215,29 @@ public class StagingItemReader extends JdbcDaoSupport implements ItemStream, Key
return true;
}
/*
* (non-Javadoc)
* @see org.springframework.batch.item.ItemStream#mark(org.springframework.batch.item.StreamContext)
/* (non-Javadoc)
* @see org.springframework.batch.item.ItemStream#mark(org.springframework.batch.item.ExecutionAttributes)
*/
public void mark(ExecutionAttributes streamContext) {
public void mark(ExecutionAttributes executionAttributes) {
getBuffer().commit();
}
/*
* (non-Javadoc)
* @see org.springframework.batch.item.ItemStream#reset(org.springframework.batch.item.StreamContext)
/* (non-Javadoc)
* @see org.springframework.batch.item.ItemStream#reset(org.springframework.batch.item.ExecutionAttributes)
*/
public void reset(ExecutionAttributes streamContext) {
public void reset(ExecutionAttributes executionAttributes) {
getBuffer().rollback();
}
/*
* (non-Javadoc)
* @see org.springframework.batch.item.ItemStream#restoreFrom(org.springframework.batch.item.StreamContext)
/* (non-Javadoc)
* @see org.springframework.batch.item.ItemStream#restoreFrom(org.springframework.batch.item.ExecutionAttributes)
*/
public void restoreFrom(ExecutionAttributes context) {
// no-op
}
/*
* (non-Javadoc)
* @see org.springframework.batch.item.StreamContextProvider#getStreamContext()
/* (non-Javadoc)
* @see org.springframework.batch.item.ExecutionAttributesProvider#getExecutionAttributes()
*/
public ExecutionAttributes getExecutionAttributes() {
return new ExecutionAttributes();

View File

@@ -47,9 +47,8 @@ public class InfiniteLoopTasklet implements Tasklet, ExecutionAttributesProvider
return ExitStatus.CONTINUABLE;
}
/*
* (non-Javadoc)
* @see org.springframework.batch.item.stream.ItemStreamAdapter#getStreamContext()
/* (non-Javadoc)
* @see org.springframework.batch.item.ExecutionAttributesProvider#getExecutionAttributes()
*/
public ExecutionAttributes getExecutionAttributes() {
return new ExecutionAttributes(PropertiesConverter.stringToProperties("count=" + count));

View File

@@ -84,7 +84,7 @@ public class SimpleTradeTasklet implements Tasklet, ExecutionAttributesProvider
}
/* (non-Javadoc)
* @see org.springframework.batch.item.StreamContextProvider#getStreamContext()
* @see org.springframework.batch.item.ExecutionAttributesProvider#getExecutionAttributes()
*/
public ExecutionAttributes getExecutionAttributes() {
ExecutionAttributes statistics = new ExecutionAttributes();