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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a fully builtHibernateItemWriterclearSession(boolean clearSession) If set to false, theSessionwill not be cleared at the end of the chunk.sessionFactory(org.hibernate.SessionFactory sessionFactory) The HibernateSessionFactoryto obtain a session from.
-
Constructor Details
-
HibernateItemWriterBuilder
public HibernateItemWriterBuilder()
-
-
Method Details
-
clearSession
If set to false, theSessionwill not be cleared at the end of the chunk.- Parameters:
clearSession- defaults to true- Returns:
- this instance for method chaining
- See Also:
-
sessionFactory
The HibernateSessionFactoryto obtain a session from. Required.- Parameters:
sessionFactory- theSessionFactory- Returns:
- this instance for method chaining
- See Also:
-
build
Returns a fully builtHibernateItemWriter- Returns:
- the writer
-