org.springframework.batch.sample.domain.trade.internal
Class CustomerUpdateWriter
java.lang.Object
org.springframework.batch.sample.domain.trade.internal.CustomerUpdateWriter
- All Implemented Interfaces:
- ItemWriter<Trade>
public class CustomerUpdateWriter
- extends Object
- implements ItemWriter<Trade>
Transforms Trade to a CustomerDebit and asks DAO delegate to write the
result.
- Author:
- Robert Kasanicky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerUpdateWriter
public CustomerUpdateWriter()
write
public void write(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 interface ItemWriter<Trade>
setDao
public void setDao(CustomerDebitDao outputSource)
Copyright © 2009 SpringSource. All Rights Reserved.