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

java.lang.Object
  extended by 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

Constructor Summary
FlatFileCustomerCreditDao()
           
 
Method Summary
 void close()
           
 void destroy()
           
 void open(ExecutionContext executionContext)
           
 void setItemWriter(ItemWriter<String> itemWriter)
           
 void setSeparator(String separator)
           
 void writeCredit(CustomerCredit customerCredit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatFileCustomerCreditDao

public FlatFileCustomerCreditDao()
Method Detail

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.