public class HibernateAwareCustomerCreditItemWriter extends Object implements ItemWriter<CustomerCredit>, org.springframework.beans.factory.InitializingBean
ItemWriter
contract.Constructor and Description |
---|
HibernateAwareCustomerCreditItemWriter() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
setDao(CustomerCreditDao dao) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
void |
write(List<? extends CustomerCredit> items)
Process the supplied data element.
|
public HibernateAwareCustomerCreditItemWriter()
public void write(List<? extends CustomerCredit> items) throws Exception
ItemWriter
write
in interface ItemWriter<CustomerCredit>
Exception
- if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.public void setDao(CustomerCreditDao dao)
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Copyright © 2014 Pivotal. All rights reserved.