org.springframework.batch.sample.common
Class ProcessIndicatorItemWrapper<T>

java.lang.Object
  extended by 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

Constructor Summary
ProcessIndicatorItemWrapper(long id, T item)
           
 
Method Summary
 long getId()
           
 T getItem()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessIndicatorItemWrapper

public ProcessIndicatorItemWrapper(long id,
                                   T item)
Method Detail

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.