Class CustomerCreditUpdateWriter
- java.lang.Object
- org.springframework.batch.sample.domain.trade.internal.CustomerCreditUpdateWriter
- All Implemented Interfaces:
ItemWriter<CustomerCredit>
public class CustomerCreditUpdateWriter extends java.lang.Object implements ItemWriter<CustomerCredit>
Constructor Summary
Constructors Constructor Description CustomerCreditUpdateWriter()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setCreditFilter(double creditFilter)
void
setDao(CustomerCreditDao dao)
void
write(java.util.List<? extends CustomerCredit> customerCredits)
Process the supplied data element.
Method Detail
write
public void write(java.util.List<? extends CustomerCredit> customerCredits) 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<CustomerCredit>
- Parameters:
customerCredits
- 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.
setCreditFilter
public void setCreditFilter(double creditFilter)
setDao
public void setDao(CustomerCreditDao dao)