org.springframework.batch.sample.domain.trade.internal
Class FlatFileCustomerCreditDao
java.lang.Object
org.springframework.batch.sample.domain.trade.internal.FlatFileCustomerCreditDao
- All Implemented Interfaces:
- CustomerCreditDao, DisposableBean
public class FlatFileCustomerCreditDao
- extends Object
- implements CustomerCreditDao, DisposableBean
Writes customer's credit information in a file.
- Author:
- Robert Kasanicky
- See Also:
CustomerCreditDao
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatFileCustomerCreditDao
public FlatFileCustomerCreditDao()
writeCredit
public void writeCredit(CustomerCredit customerCredit)
throws Exception
- Specified by:
writeCredit
in interface CustomerCreditDao
- Throws:
Exception
setSeparator
public void setSeparator(String separator)
setItemWriter
public void setItemWriter(ItemWriter<String> itemWriter)
open
public void open(ExecutionContext executionContext)
throws Exception
- Throws:
Exception
close
public void close()
throws Exception
- Throws:
Exception
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface DisposableBean
- Throws:
Exception
Copyright © 2009 SpringSource. All Rights Reserved.