Package org.jeecgframework.poi.excel.entity

Examples of org.jeecgframework.poi.excel.entity.ExcelImportEntity


   * @param titleString
   */
  private static void judgeTypeAndSetValue(Object object, Cell cell,
      Map<String, ExcelImportEntity> excelParams, String titleString)
      throws Exception {
    ExcelImportEntity entity = excelParams.get(titleString);
    Method setMethod = entity.getSetMethods()!=null&&entity.getSetMethods().size() > 0 ? entity
        .getSetMethods().get(entity.getSetMethods().size() - 1)
        : entity.getSetMethod();
    Type[] ts = setMethod.getGenericParameterTypes();
    String xclass = ts[0].toString();
    if (xclass.equals("class java.lang.String")) {
      cell.setCellType(Cell.CELL_TYPE_STRING);
      setValues(entity, object, cell.getStringCellValue());
View Full Code Here


   */
  private static void getAllExcelField(String targetId, Field[] fields,
      Map<String, ExcelImportEntity> excelParams,
      List<ExcelCollectionParams> excelCollection, Class<?> pojoClass,
      List<Method> getMethods) throws Exception {
    ExcelImportEntity excelEntity = null;
    for (int i = 0; i < fields.length; i++) {
      Field field = fields[i];
      if (ExcelPublicUtil.isNotUserExcelUserThis(field, targetId)) {
        continue;
      }
View Full Code Here

  }

  private static void getExcelFieldList(String targetId, Field[] fields,
      Class<?> pojoClass, Map<String, ExcelImportEntity> temp,
      List<Method> getMethods) throws Exception {
    ExcelImportEntity excelEntity = null;
    for (int i = 0; i < fields.length; i++) {
      Field field = fields[i];
      if (ExcelPublicUtil.isNotUserExcelUserThis(field, targetId)) {
        continue;
      }
View Full Code Here

   */
  private static void addEntityToMap(String targetId, Field field,
      ExcelImportEntity excelEntity, Class<?> pojoClass,
      List<Method> getMethods, Map<String, ExcelImportEntity> temp) throws Exception {
    Excel excel = field.getAnnotation(Excel.class);
    excelEntity = new ExcelImportEntity();
    excelEntity.setType(excel.exportType());
    excelEntity.setSaveUrl(excel.savePath());
    excelEntity.setSaveType(excel.imageType());
    getExcelField(targetId, field, excelEntity, excel, pojoClass);
    if (getMethods != null) {
View Full Code Here

TOP

Related Classes of org.jeecgframework.poi.excel.entity.ExcelImportEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.