Class CustomerUpdateWriter
- java.lang.Object
- org.springframework.batch.sample.domain.trade.internal.CustomerUpdateWriter
- All Implemented Interfaces:
ItemWriter<Trade>
public class CustomerUpdateWriter extends java.lang.Object implements ItemWriter<Trade>
Transforms Trade to a CustomerDebit and asks DAO delegate to write the result.- Author:
- Robert Kasanicky
Constructor Summary
Constructors Constructor Description CustomerUpdateWriter()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setDao(CustomerDebitDao outputSource)
void
write(java.util.List<? extends Trade> trades)
Process the supplied data element.
Method Detail
write
public void write(java.util.List<? extends Trade> trades)
Description copied from interface:ItemWriter
Process the supplied data element. Will not be called with any null items in normal operation.- Specified by:
write
in interfaceItemWriter<Trade>
- Parameters:
trades
- items to be written
setDao
public void setDao(CustomerDebitDao outputSource)