Class CustomerUpdateWriter
- java.lang.Object
- org.springframework.batch.sample.domain.trade.CustomerUpdateWriter
- All Implemented Interfaces:
ItemWriter<CustomerUpdate>
public class CustomerUpdateWriter extends java.lang.Object implements ItemWriter<CustomerUpdate>
- Author:
- Lucas Ward
Constructor Summary
Constructors Constructor Description CustomerUpdateWriter()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setCustomerDao(CustomerDao customerDao)
void
write(java.util.List<? extends CustomerUpdate> items)
Process the supplied data element.
Method Detail
write
public void write(java.util.List<? extends CustomerUpdate> items) throws java.lang.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 interfaceItemWriter<CustomerUpdate>
- Parameters:
items
- items to be written- Throws:
java.lang.Exception
- if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.
setCustomerDao
public void setCustomerDao(CustomerDao customerDao)