org.springframework.batch.sample.domain.trade.internal
Class CustomerUpdateWriter

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

Constructor Summary
CustomerUpdateWriter()
           
 
Method Summary
 void setDao(CustomerDebitDao outputSource)
           
 void write(List<? extends Trade> trades)
          Process the supplied data element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerUpdateWriter

public CustomerUpdateWriter()
Method Detail

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.