public class HibernateAwareCustomerCreditItemWriter extends java.lang.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(java.util.List<? extends CustomerCredit> items)
Process the supplied data element.
|
public HibernateAwareCustomerCreditItemWriter()
public void write(java.util.List<? extends CustomerCredit> items) throws java.lang.Exception
ItemWriterwrite in interface ItemWriter<CustomerCredit>items - items to be writtenjava.lang.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)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception