类 CustomerUpdateWriter
- java.lang.Object
- org.springframework.batch.sample.domain.trade.CustomerUpdateWriter
- 所有已实现的接口:
ItemWriter<CustomerUpdate>
public class CustomerUpdateWriter extends java.lang.Object implements ItemWriter<CustomerUpdate>
- 作者:
- Lucas Ward
构造器概要
构造器 构造器 说明 CustomerUpdateWriter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
setCustomerDao(CustomerDao customerDao)
void
write(java.util.List<? extends CustomerUpdate> items)
Process the supplied data element.
构造器详细资料
CustomerUpdateWriter
public CustomerUpdateWriter()
方法详细资料
write
public void write(java.util.List<? extends CustomerUpdate> items) throws java.lang.Exception
从接口复制的说明:ItemWriter
Process the supplied data element. Will not be called with any null items in normal operation.- 指定者:
write
在接口中ItemWriter<CustomerUpdate>
- 参数:
items
- items to be written- 抛出:
java.lang.Exception
- if there are errors. The framework will catch the exception and convert or rethrow it as appropriate.
setCustomerDao
public void setCustomerDao(CustomerDao customerDao)