Class SpringBatchObjectFactory


  • public final class SpringBatchObjectFactory
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String READER_SUFFIX  
      static java.lang.String WRITER_SUFFIX  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> org.springframework.batch.item.file.FlatFileItemReader<T> newCsvFileItemReader​(@NonNull org.springframework.core.io.Resource resource, @NonNull java.lang.Class<T> typeClass, @NonNull java.lang.String delimiter, int linesToSkip)  
      static <T> org.springframework.batch.item.file.FlatFileItemReader<T> newCsvFileItemReader​(@NonNull org.springframework.core.io.Resource resource, @NonNull java.lang.Class<T> typeClass, @NonNull java.time.format.DateTimeFormatter formatter, @NonNull java.lang.String delimiter, int linesToSkip)  
      static <T> org.springframework.batch.item.file.FlatFileItemReader<T> newCsvFileItemReader​(@NonNull org.springframework.core.io.Resource resource, @NonNull java.lang.Class<T> typeClass, @NonNull org.springframework.batch.item.file.mapping.FieldSetMapper<T> fieldSetMapper, @NonNull java.lang.String delimiter, int linesToSkip)  
      static <T> CustomBeanWrapperFieldSetMapper<T> newCustomBeanWrapperFieldSetMapper​(@NonNull java.lang.Class<? extends T> typeClass, @NonNull java.time.format.DateTimeFormatter formatter)  
      static <T> org.springframework.batch.item.database.JdbcBatchItemWriter<T> newJdbcBatchItemWriter​(@NonNull javax.sql.DataSource dataSource, @NonNull java.lang.String sql)  
      static <T> org.springframework.batch.item.database.JpaItemWriter<T> newJpaItemWriter​(@NonNull javax.persistence.EntityManagerFactory entityManagerFactory)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newJdbcBatchItemWriter

        public static <T> org.springframework.batch.item.database.JdbcBatchItemWriter<T> newJdbcBatchItemWriter​(@NonNull
                                                                                                                @NonNull javax.sql.DataSource dataSource,
                                                                                                                @NonNull
                                                                                                                @NonNull java.lang.String sql)
      • newCsvFileItemReader

        public static <T> org.springframework.batch.item.file.FlatFileItemReader<T> newCsvFileItemReader​(@NonNull
                                                                                                         @NonNull org.springframework.core.io.Resource resource,
                                                                                                         @NonNull
                                                                                                         @NonNull java.lang.Class<T> typeClass,
                                                                                                         @NonNull
                                                                                                         @NonNull java.lang.String delimiter,
                                                                                                         int linesToSkip)
      • newCsvFileItemReader

        public static <T> org.springframework.batch.item.file.FlatFileItemReader<T> newCsvFileItemReader​(@NonNull
                                                                                                         @NonNull org.springframework.core.io.Resource resource,
                                                                                                         @NonNull
                                                                                                         @NonNull java.lang.Class<T> typeClass,
                                                                                                         @NonNull
                                                                                                         @NonNull java.time.format.DateTimeFormatter formatter,
                                                                                                         @NonNull
                                                                                                         @NonNull java.lang.String delimiter,
                                                                                                         int linesToSkip)
      • newCsvFileItemReader

        public static <T> org.springframework.batch.item.file.FlatFileItemReader<T> newCsvFileItemReader​(@NonNull
                                                                                                         @NonNull org.springframework.core.io.Resource resource,
                                                                                                         @NonNull
                                                                                                         @NonNull java.lang.Class<T> typeClass,
                                                                                                         @NonNull
                                                                                                         @NonNull org.springframework.batch.item.file.mapping.FieldSetMapper<T> fieldSetMapper,
                                                                                                         @NonNull
                                                                                                         @NonNull java.lang.String delimiter,
                                                                                                         int linesToSkip)
      • newJpaItemWriter

        public static <T> org.springframework.batch.item.database.JpaItemWriter<T> newJpaItemWriter​(@NonNull
                                                                                                    @NonNull javax.persistence.EntityManagerFactory entityManagerFactory)
      • newCustomBeanWrapperFieldSetMapper

        public static <T> CustomBeanWrapperFieldSetMapper<T> newCustomBeanWrapperFieldSetMapper​(@NonNull
                                                                                                @NonNull java.lang.Class<? extends T> typeClass,
                                                                                                @NonNull
                                                                                                @NonNull java.time.format.DateTimeFormatter formatter)