Esempio n. 1
0
 /**
  * 数据表 字段列表。
  *
  * <ol>
  *   [功能概要] <div>数据表 字段列表。</div>
  * </ol>
  *
  * @return 转发字符串
  */
 public String list2() throws Exception {
   log.info("CX002Action list2");
   // 获取表名称列表
   tables = request.getParameterValues("tableName");
   // set
   request.setAttribute("maps", sourceDataManager.getTableInfoMaps(tables));
   // 获取已经配置的详细信息
   if (!Validator.isEmpty(id)) {
     AdspServiceConfigInfoBean bean = new AdspServiceConfigInfoBean();
     bean.setId(id);
     bean = serviceConfigManager.findAdspServiceConfigInfoById(bean);
     if (bean != null) {
       // TODO--old_info
       request.setAttribute("old_info", JsonUtils.jsonToBean2(bean.getConfig()));
     }
   }
   return "list2";
 }
Esempio n. 2
0
 /**
  * 数据库列表。
  *
  * <ol>
  *   [功能概要] <div>数据库列表。</div>
  * </ol>
  *
  * @return 转发字符串
  */
 public String dblist() throws Exception {
   log.info("CX002Action dblist");
   // 数据库列表
   request.setAttribute("dbs", sourceDataManager.findDbList(null));
   // 获取已经配置的表列表
   if (!Validator.isEmpty(id)) {
     AdspServiceConfigInfoBean bean = new AdspServiceConfigInfoBean();
     bean.setId(id);
     bean = serviceConfigManager.findAdspServiceConfigInfoById(bean);
     if (bean != null) {
       // TODO--old_dbs
       ConfigJsonBean old_info = JsonUtils.jsonToBean2(bean.getConfig());
       if (old_info != null) {
         request.setAttribute("old_dbs", old_info.getDbs());
       }
     }
   }
   return "dblist";
 }
Esempio n. 3
0
  /**
   * 数据表列表。
   *
   * <ol>
   *   [功能概要] <div>数据表列表。</div>
   * </ol>
   *
   * @return 转发字符串
   */
  public String list1() throws Exception {
    log.info("CX002Action list1");

    List<TableColumnsBean> tables = sourceDataManager.findTableList(dbs);
    request.setAttribute("tables", tables);
    // 获取已经配置的表列表
    if (!Validator.isEmpty(id)) {
      AdspServiceConfigInfoBean bean = new AdspServiceConfigInfoBean();
      bean.setId(id);
      bean = serviceConfigManager.findAdspServiceConfigInfoById(bean);
      if (bean != null) {
        // TODO--old_tables
        ConfigJsonBean old_info = JsonUtils.jsonToBean2(bean.getConfig());
        if (old_info != null) {
          request.setAttribute("old_tables", old_info.getTables());
        }
      }
    }
    return "list1";
  }