Class ExcelImporter<T,D>

java.lang.Object
com.power4j.fist.data.excel.ExcelImporter<T,D>
Type Parameters:
T - Excel 文档模型
D - 数据库实体类型

public class ExcelImporter<T,D> extends Object
Since:
1.0
Author:
CJ (power4j@outlook.com)
  • Constructor Details

    • ExcelImporter

      public ExcelImporter()
  • Method Details

    • doImport

      public long doImport(InputStream stream)
      解析流,并导入数据库
      Parameters:
      stream - InputStream
      Returns:
      返回导入数据条数
    • processAndClear

      protected void processAndClear(Collection<T> data)