类 ImportBaseService
java.lang.Object
org.jeecgframework.poi.excel.imports.base.ImportBaseService
- 直接已知子类:
ExcelImportServer,SaxRowRead
导入基础和,普通方法和Sax共用
- 作者:
- JEECG
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddEntityToMap(String targetId, Field field, ExcelImportEntity excelEntity, Class<?> pojoClass, List<Method> getMethods, Map<String, ExcelImportEntity> temp) 把这个注解解析放到类型对象中voidgetAllExcelField(String targetId, Field[] fields, Map<String, ExcelImportEntity> excelParams, List<ExcelCollectionParams> excelCollection, Class<?> pojoClass, List<Method> getMethods) 获取需要导出的全部字段voidgetExcelField(String targetId, Field field, ExcelImportEntity excelEntity, Excel excel, Class<?> pojoClass) voidgetExcelFieldList(String targetId, Field[] fields, Class<?> pojoClass, Map<String, ExcelImportEntity> temp, List<Method> getMethods) getExcelName(String exportName, String targetId) 判断在这个单元格显示的名称getFieldBySomeMethod(List<Method> list, Object t) getImportVerify(Field field) 获取导入校验参数getSaveExcelUrl(ImportParams params, Class<?> pojoClass) 获取保存的Excel 的真实路径voidsaveThisExcel(ImportParams params, Class<?> pojoClass, boolean isXSSFWorkbook, org.apache.poi.ss.usermodel.Workbook book) voidsetFieldBySomeMethod(List<Method> setMethods, Object object, Object value) 多个get 最后再setvoidsetValues(ExcelImportEntity entity, Object object, Object value)
-
构造器详细资料
-
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
获取导入校验参数- 参数:
field-- 返回:
-
getAllExcelField
public void getAllExcelField(String targetId, Field[] fields, Map<String, ExcelImportEntity> excelParams, List<ExcelCollectionParams> excelCollection, Class<?> pojoClass, List<Method> getMethods) throws Exception获取需要导出的全部字段- 参数:
targetId- 目标IDfields-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
判断在这个单元格显示的名称- 参数:
exportName-targetId-- 返回:
-
getFieldBySomeMethod
- 抛出:
Exception
-
saveThisExcel
public void saveThisExcel(ImportParams params, Class<?> pojoClass, boolean isXSSFWorkbook, org.apache.poi.ss.usermodel.Workbook book) throws Exception - 抛出:
Exception
-
getSaveExcelUrl
获取保存的Excel 的真实路径- 参数:
params-pojoClass-- 返回:
- 抛出:
Exception
-
setFieldBySomeMethod
public void setFieldBySomeMethod(List<Method> setMethods, Object object, Object value) throws Exception 多个get 最后再set- 参数:
setMethods-object-- 抛出:
Exception
-
setValues
- 参数:
entity-object-value-- 抛出:
Exception
-