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 java.lang.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

    Constructors
    Constructor and Description
    `ProcessIndicatorItemWrapper(long id, T item)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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)