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

java.lang.Object
  extended by org.springframework.batch.sample.domain.trade.CustomerUpdateWriter
All Implemented Interfaces:
ItemWriter<CustomerUpdate>

public class CustomerUpdateWriter
extends Object
implements ItemWriter<CustomerUpdate>

Author:
Lucas Ward

Constructor Summary
CustomerUpdateWriter()
           
 
Method Summary
 void setCustomerDao(CustomerDao customerDao)
           
 void write(List<? extends CustomerUpdate> items)
          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 CustomerUpdate> items)
           throws Exception
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<CustomerUpdate>
Throws:
Exception - if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.

setCustomerDao

public void setCustomerDao(CustomerDao customerDao)


Copyright © 2009 SpringSource. All Rights Reserved.