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

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

public class CustomerCreditItemWriter
extends Object
implements org.springframework.batch.item.ItemWriter<CustomerCredit>

Delegates actual writing to a custom DAO.

Author:
Robert Kasanicky

Constructor Summary
CustomerCreditItemWriter()
           
 
Method Summary
 void setCustomerCreditDao(CustomerCreditDao customerCreditDao)
          Public setter for the CustomerCreditDao.
 void write(List<? extends CustomerCredit> customerCredits)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerCreditItemWriter

public CustomerCreditItemWriter()
Method Detail

setCustomerCreditDao

public void setCustomerCreditDao(CustomerCreditDao customerCreditDao)
Public setter for the CustomerCreditDao.

Parameters:
customerCreditDao - the CustomerCreditDao to set

write

public void write(List<? extends CustomerCredit> customerCredits)
           throws Exception
Specified by:
write in interface org.springframework.batch.item.ItemWriter<CustomerCredit>
Throws:
Exception


Copyright © 2013. All Rights Reserved.