Class HibernateItemWriterBuilder<T>
java.lang.Object
org.springframework.batch.item.database.builder.HibernateItemWriterBuilder<T>
Deprecated, for removal: This API element is subject to removal in a future version.
A builder for the
HibernateItemWriter
- Since:
- 4.0
- Author:
- Michael Minella, Mahmoud Ben Hassine
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated, for removal: This API element is subject to removal in a future version.Returns a fully builtHibernateItemWriter
clearSession
(boolean clearSession) Deprecated, for removal: This API element is subject to removal in a future version.If set to false, theSession
will not be cleared at the end of the chunk.sessionFactory
(org.hibernate.SessionFactory sessionFactory) Deprecated, for removal: This API element is subject to removal in a future version.The HibernateSessionFactory
to obtain a session from.
-
Constructor Details
-
HibernateItemWriterBuilder
public HibernateItemWriterBuilder()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
clearSession
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.The HibernateSessionFactory
to obtain a session from. Required.- Parameters:
sessionFactory
- theSessionFactory
- Returns:
- this instance for method chaining
- See Also:
-
build
Deprecated, for removal: This API element is subject to removal in a future version.Returns a fully builtHibernateItemWriter
- Returns:
- the writer
-
JpaItemWriterBuilder
instead.