Class JpaItemWriterBuilder<T>
- java.lang.Object
- org.springframework.batch.item.database.builder.JpaItemWriterBuilder<T>
public class JpaItemWriterBuilder<T> extends java.lang.ObjectA builder for theJpaItemWriter.- Since:
- 4.1
- Author:
- Mahmoud Ben Hassine
- See Also:
JpaItemWriter
Constructor Summary
Constructors Constructor Description JpaItemWriterBuilder()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JpaItemWriter<T>build()Returns a fully builtJpaItemWriter.JpaItemWriterBuilder<T>entityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)The JPAEntityManagerFactoryto obtain an entity manager from.
Method Detail
entityManagerFactory
public JpaItemWriterBuilder<T> entityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
The JPAEntityManagerFactoryto obtain an entity manager from. Required.- Parameters:
entityManagerFactory- theEntityManagerFactory- Returns:
- this instance for method chaining
- See Also:
JpaItemWriter.setEntityManagerFactory(EntityManagerFactory)
build
public JpaItemWriter<T> build()
Returns a fully builtJpaItemWriter.- Returns:
- the writer