Class HibernateItemWriterBuilder<T>

java.lang.Object
org.springframework.batch.item.database.builder.HibernateItemWriterBuilder<T>

@Deprecated(since="5.0", forRemoval=true) public class HibernateItemWriterBuilder<T> extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.0 for removal in 5.2. Use the JpaItemWriterBuilder instead.
A builder for the HibernateItemWriter
Since:
4.0
Author:
Michael Minella, Mahmoud Ben Hassine
See Also:
  • Constructor Details

    • HibernateItemWriterBuilder

      public HibernateItemWriterBuilder()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • clearSession

      public HibernateItemWriterBuilder<T> clearSession(boolean clearSession)
      Deprecated, for removal: This API element is subject to removal in a future version.
      If set to false, the Session will not be cleared at the end of the chunk.
      Parameters:
      clearSession - defaults to true
      Returns:
      this instance for method chaining
      See Also:
    • sessionFactory

      public HibernateItemWriterBuilder<T> sessionFactory(org.hibernate.SessionFactory sessionFactory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      The Hibernate SessionFactory to obtain a session from. Required.
      Parameters:
      sessionFactory - the SessionFactory
      Returns:
      this instance for method chaining
      See Also:
    • build

      public HibernateItemWriter<T> build()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a fully built HibernateItemWriter
      Returns:
      the writer