public class HibernateItemWriterBuilder<T>
extends java.lang.Object
HibernateItemWriter
HibernateItemWriter
Constructor and Description |
---|
HibernateItemWriterBuilder() |
Modifier and Type | Method and Description |
---|---|
HibernateItemWriter<T> |
build()
Returns a fully built
HibernateItemWriter |
HibernateItemWriterBuilder<T> |
clearSession(boolean clearSession)
If set to false, the
Session will not be cleared at the end
of the chunk. |
HibernateItemWriterBuilder<T> |
sessionFactory(org.hibernate.SessionFactory sessionFactory)
The Hibernate
SessionFactory to obtain a session from. |
public HibernateItemWriterBuilder<T> clearSession(boolean clearSession)
Session
will not be cleared at the end
of the chunk.clearSession
- defaults to trueHibernateItemWriter.setClearSession(boolean)
public HibernateItemWriterBuilder<T> sessionFactory(org.hibernate.SessionFactory sessionFactory)
SessionFactory
to obtain a session from. Required.sessionFactory
- the SessionFactory
HibernateItemWriter.setSessionFactory(SessionFactory)
public HibernateItemWriter<T> build()
HibernateItemWriter