org.springframework.batch.sample.domain.trade.internal
Class CustomerCreditUpdateWriter
java.lang.Object
org.springframework.batch.sample.domain.trade.internal.CustomerCreditUpdateWriter
- All Implemented Interfaces:
- ItemWriter<CustomerCredit>
public class CustomerCreditUpdateWriter
- extends Object
- implements ItemWriter<CustomerCredit>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerCreditUpdateWriter
public CustomerCreditUpdateWriter()
write
public void write(List<? extends CustomerCredit> customerCredits)
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<CustomerCredit>
- Throws:
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)
Copyright © 2009 SpringSource. All Rights Reserved.