org.springframework.batch.item
Interface ItemKeyGenerator
- All Known Implementing Classes:
- JmsItemReader
public interface ItemKeyGenerator
Extension of the ItemReader
interface that allows items to be
identified and tagged by a unique key.
- Author:
- Dave Syer
Method Summary |
Object |
getKey(Object item)
Get a unique identifier for the item that can be used to cache it between
calls if necessary, and then identify it later. |
getKey
Object getKey(Object item)
- Get a unique identifier for the item that can be used to cache it between
calls if necessary, and then identify it later.
- Parameters:
item
- the current item.
- Returns:
- a unique identifier.
Copyright © 2008 SpringSource. All Rights Reserved.