Class HibernateItemWriterBuilder<T>
java.lang.Object
org.springframework.batch.item.database.builder.HibernateItemWriterBuilder<T>
A builder for the
HibernateItemWriter
- Since:
- 4.0
- Author:
- Michael Minella
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a fully builtHibernateItemWriter
clearSession
(boolean clearSession) If set to false, theSession
will not be cleared at the end of the chunk.sessionFactory
(org.hibernate.SessionFactory sessionFactory) The HibernateSessionFactory
to obtain a session from.
-
Constructor Details
-
HibernateItemWriterBuilder
public HibernateItemWriterBuilder()
-
-
Method Details
-
clearSession
If set to false, theSession
will not be cleared at the end of the chunk.- Parameters:
clearSession
- defaults to true- Returns:
- this instance for method chaining
- See Also:
-
sessionFactory
The HibernateSessionFactory
to obtain a session from. Required.- Parameters:
sessionFactory
- theSessionFactory
- Returns:
- this instance for method chaining
- See Also:
-
build
Returns a fully builtHibernateItemWriter
- Returns:
- the writer
-