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

java.lang.Object
  extended by org.springframework.batch.sample.domain.trade.internal.CustomerCreditUpdateWriter
All Implemented Interfaces:
ItemWriter<CustomerCredit>

public class CustomerCreditUpdateWriter
extends Object
implements ItemWriter<CustomerCredit>


Constructor Summary
CustomerCreditUpdateWriter()
           
 
Method Summary
 void setCreditFilter(double creditFilter)
           
 void setDao(CustomerCreditDao dao)
           
 void write(List<? extends CustomerCredit> customerCredits)
          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

CustomerCreditUpdateWriter

public CustomerCreditUpdateWriter()
Method Detail

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.