org.jeecgframework.poi.excel.imports.base
类 ImportBaseService

java.lang.Object
  继承者 org.jeecgframework.poi.excel.imports.base.ImportBaseService
直接已知子类:
ExcelImportServer, SaxRowRead

public class ImportBaseService
extends Object

导入基础和,普通方法和Sax共用

作者:
JueYue

构造方法摘要
ImportBaseService()
           
 
方法摘要
 void addEntityToMap(String targetId, Field field, ExcelImportEntity excelEntity, Class<?> pojoClass, List<Method> getMethods, Map<String,ExcelImportEntity> temp)
          把这个注解解析放到类型对象中
 void getAllExcelField(String targetId, Field[] fields, Map<String,ExcelImportEntity> excelParams, List<ExcelCollectionParams> excelCollection, Class<?> pojoClass, List<Method> getMethods)
          获取需要导出的全部字段
 void getExcelField(String targetId, Field field, ExcelImportEntity excelEntity, Excel excel, Class<?> pojoClass)
           
 void getExcelFieldList(String targetId, Field[] fields, Class<?> pojoClass, Map<String,ExcelImportEntity> temp, List<Method> getMethods)
           
 String getExcelName(String exportName, String targetId)
          判断在这个单元格显示的名称
 Object getFieldBySomeMethod(List<Method> list, Object t)
           
 ExcelVerifyEntity getImportVerify(Field field)
          获取导入校验参数
 String getSaveExcelUrl(ImportParams params, Class<?> pojoClass)
          获取保存的Excel 的真实路径
 void saveThisExcel(ImportParams params, Class<?> pojoClass, boolean isXSSFWorkbook, org.apache.poi.ss.usermodel.Workbook book)
           
 void setFieldBySomeMethod(List<Method> setMethods, Object object, Object value)
          多个get 最后再set
 void setValues(ExcelImportEntity entity, Object object, Object value)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ImportBaseService

public ImportBaseService()
方法详细信息

addEntityToMap

public void addEntityToMap(String targetId,
                           Field field,
                           ExcelImportEntity excelEntity,
                           Class<?> pojoClass,
                           List<Method> getMethods,
                           Map<String,ExcelImportEntity> temp)
                    throws Exception
把这个注解解析放到类型对象中

参数:
targetId -
field -
excelEntity -
pojoClass -
getMethods -
temp -
抛出:
Exception

getImportVerify

public ExcelVerifyEntity getImportVerify(Field field)
获取导入校验参数

参数:
field -
返回:

getAllExcelField

public void getAllExcelField(String targetId,
                             Field[] fields,
                             Map<String,ExcelImportEntity> excelParams,
                             List<ExcelCollectionParams> excelCollection,
                             Class<?> pojoClass,
                             List<Method> getMethods)
                      throws Exception
获取需要导出的全部字段

参数:
exclusions -
targetId - 目标ID
fields -
excelCollection -
抛出:
Exception

getExcelField

public void getExcelField(String targetId,
                          Field field,
                          ExcelImportEntity excelEntity,
                          Excel excel,
                          Class<?> pojoClass)
                   throws Exception
抛出:
Exception

getExcelFieldList

public void getExcelFieldList(String targetId,
                              Field[] fields,
                              Class<?> pojoClass,
                              Map<String,ExcelImportEntity> temp,
                              List<Method> getMethods)
                       throws Exception
抛出:
Exception

getExcelName

public String getExcelName(String exportName,
                           String targetId)
判断在这个单元格显示的名称

参数:
exportName -
targetId -
返回:

getFieldBySomeMethod

public Object getFieldBySomeMethod(List<Method> list,
                                   Object t)
                            throws Exception
抛出:
Exception

saveThisExcel

public void saveThisExcel(ImportParams params,
                          Class<?> pojoClass,
                          boolean isXSSFWorkbook,
                          org.apache.poi.ss.usermodel.Workbook book)
                   throws Exception
抛出:
Exception

getSaveExcelUrl

public String getSaveExcelUrl(ImportParams params,
                              Class<?> pojoClass)
                       throws Exception
获取保存的Excel 的真实路径

参数:
params -
pojoClass -
返回:
抛出:
Exception

setFieldBySomeMethod

public void setFieldBySomeMethod(List<Method> setMethods,
                                 Object object,
                                 Object value)
                          throws Exception
多个get 最后再set

参数:
setMethods -
object -
抛出:
Exception

setValues

public void setValues(ExcelImportEntity entity,
                      Object object,
                      Object value)
               throws Exception
参数:
entity -
object -
value -
抛出:
Exception


Copyright © 2015. All Rights Reserved.