Examples of DBInfoXmlFiles


Examples of org.eweb4j.config.bean.DBInfoXmlFiles

    ConfigBean cb = (ConfigBean) SingleBeanCache
        .get(ConfigConstant.CONFIGBEAN_ID);
    if (cb == null)
      return null;

    DBInfoXmlFiles dbInfoXmlFiles = cb.getOrm().getDbInfoXmlFiles();
    if (dbInfoXmlFiles == null)
      return ConfigInfoCons.CANNOT_READ_CONFIG_FILE;

    for (String filePath : dbInfoXmlFiles.getPath()) {
      if (filePath == null || filePath.length() == 0)
        continue;

      File configFile = new File(ConfigConstant.CONFIG_BASE_PATH
          + filePath);
View Full Code Here

Examples of org.eweb4j.config.bean.DBInfoXmlFiles

      }
      if (!StringUtil.isNumeric(orm.getLogMaxSize())) {
        sb.append("当前您填写的:( logMaxSize=").append(orm.getLogMaxSize())
            .append(" )是错误的!它只能填写为数字,注意单位是“兆”(M);").append("\n");
      }
      DBInfoXmlFiles dbInfos = orm.getDbInfoXmlFiles();
      boolean flag = false;
      if (dbInfos != null && dbInfos.getPath() != null) {
        for (String s : dbInfos.getPath()) {
          if (s == null || s.trim().length() == 0) {

            flag = true;
            break;
          }
        }
      }
      if (flag || dbInfos == null || dbInfos.getPath() == null
          || dbInfos.getPath().size() == 0) {
        sb.append("当前您填写的:( dbInfoXmlFiles=")
            .append(dbInfos)
            .append(" )是错误的!在您已经打开ORM模块的前提下,它不能留空, 参考填写:mysql.xml;")
            .append("\n");
      }
View Full Code Here

Examples of org.eweb4j.config.bean.DBInfoXmlFiles

    ORMXmlFiles ormXmlFiles = new ORMXmlFiles();
    orm.setOrmXmlFiles(ormXmlFiles);
    ScanPojoPackage spp = new ScanPojoPackage();
    orm.setScanPojoPackage(spp);

    DBInfoXmlFiles dbInfoXmlFiles = new DBInfoXmlFiles();
    dbInfoXmlFiles.setPath(new ArrayList<String>());
    orm.setDbInfoXmlFiles(dbInfoXmlFiles);

    configBean.setOrm(orm);

    ConfigMVC mvc = new ConfigMVC();
View Full Code Here

Examples of org.eweb4j.config.bean.DBInfoXmlFiles

        if (!StringUtil.isNumeric(log.getSize())) {
          sb.append("当前您填写的:( size=").append(log.getSize()).append(" )是错误的!它只能填写为数字,注意单位是“兆”(M);").append("\n");
        }
      }

      DBInfoXmlFiles dbInfos = orm.getDbInfoXmlFiles();
      boolean flag = false;
      if (dbInfos != null && dbInfos.getPath() != null) {
        for (String s : dbInfos.getPath()) {
          if (s == null || s.trim().length() == 0) {

            flag = true;
            break;
          }
View Full Code Here

Examples of org.eweb4j.config.bean.DBInfoXmlFiles

    ORMXmlFiles ormXmlFiles = new ORMXmlFiles();
    orm.setOrmXmlFiles(ormXmlFiles);
    ScanPojoPackage spp = new ScanPojoPackage();
    orm.setScanPojoPackage(spp);

    DBInfoXmlFiles dbInfoXmlFiles = new DBInfoXmlFiles();
    dbInfoXmlFiles.setPath(new ArrayList<String>());
    orm.setDbInfoXmlFiles(dbInfoXmlFiles);

    configBean.setOrm(orm);

    ConfigMVC mvc = new ConfigMVC();
View Full Code Here

Examples of org.eweb4j.config.bean.DBInfoXmlFiles

    String error = null;
    ConfigBean cb = (ConfigBean) SingleBeanCache.get(ConfigConstant.CONFIGBEAN_ID);
    if (cb == null)
      return null;

    DBInfoXmlFiles dbInfoXmlFiles = cb.getOrm().getDbInfoXmlFiles();
    if (dbInfoXmlFiles == null)
      return ConfigInfoCons.CANNOT_READ_CONFIG_FILE;

    for (String filePath : dbInfoXmlFiles.getPath()) {
      if (filePath == null || filePath.length() == 0)
        continue;

      File configFile = new File(ConfigConstant.CONFIG_BASE_PATH + filePath);
      try {
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.