Package org.jeecgframework.poi.excel.annotation

Examples of org.jeecgframework.poi.excel.annotation.Excel.exportName()


          String setMethodName = "set" + fieldname.substring(0, 1).toUpperCase() + fieldname.substring(1);
          // 构造调用的method,
          Method setMethod = pojoClass.getMethod(setMethodName, new Class[] { f.getType() });
          // 将这个method以Annotaion的名字为key来存入。
          // 对于重名将导致 覆盖 失败,对于此处的限制需要
          fieldSetMap.put(excel.exportName(), setMethod);
          if (excel.importConvertSign() == 1) {
            //----------------------------------------------------------------
            //update-begin--Author:Quainty  Date:20130524 for:[8]excel导出时间问题
            // 用get/setXxxxConvert方法名的话, 由于直接使用了数据库绑定的Entity对象,注入会有冲突
            StringBuffer setConvertMethodName = new StringBuffer("convertSet");
View Full Code Here


            setConvertMethodName.append(fieldname.substring(0, 1).toUpperCase());
            setConvertMethodName.append(fieldname.substring(1));
            //update-end--Author:Quainty  Date:20130524 for:[8]excel导出时间问题
            //----------------------------------------------------------------
            Method getConvertMethod = pojoClass.getMethod(setConvertMethodName.toString(), new Class[] { String.class });
            fieldSetConvertMap.put(excel.exportName(), getConvertMethod);
          }
        }
      }
      // 将传入的File构造为FileInputStream;
      // // 得到工作表
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.