org.springframework.batch.sample.common
Class ProcessIndicatorItemWrapper<T>
java.lang.Object
org.springframework.batch.sample.common.ProcessIndicatorItemWrapper<T>
- Type Parameters:
T
- item type
public class ProcessIndicatorItemWrapper<T>
- extends Object
Item wrapper useful in "process indicator" usecase, where input is marked as
processed by the processor/writer. This requires passing a technical
identifier of the input data so that it can be modified in later stages.
- Author:
- Robert Kasanicky
- See Also:
StagingItemReader
,
StagingItemProcessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessIndicatorItemWrapper
public ProcessIndicatorItemWrapper(long id,
T item)
getId
public long getId()
- Returns:
- id identifying the input data (typically row in database)
getItem
public T getItem()
- Returns:
- item (domain object for business processing)
Copyright © 2009 SpringSource. All Rights Reserved.