public class CustomerCreditItemWriter extends java.lang.Object implements ItemWriter<CustomerCredit>
| Constructor and Description |
|---|
CustomerCreditItemWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setCustomerCreditDao(CustomerCreditDao customerCreditDao)
Public setter for the
CustomerCreditDao. |
void |
write(java.util.List<? extends CustomerCredit> customerCredits)
Process the supplied data element.
|
public void setCustomerCreditDao(CustomerCreditDao customerCreditDao)
CustomerCreditDao.customerCreditDao - the CustomerCreditDao to setpublic void write(java.util.List<? extends CustomerCredit> customerCredits) throws java.lang.Exception
ItemWriterwrite in interface ItemWriter<CustomerCredit>customerCredits - items to be writtenjava.lang.Exception - if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.