Package com.taobao.tddl.interact.rule.bean

Examples of com.taobao.tddl.interact.rule.bean.DBType


      String weightStr = dsAndWeight.length == 2 ? dsAndWeight[1] : null;

      // ������group����һ����ʵdataSource�����������group����
      // ���dataSource������ �������һ��dataSource������Ϊ׼
      DataSource dataSource = fetcher.getDataSource(dsKey);
      DBType fetcherDbType = fetcher.getDataSourceDBType(dsKey);
      // dbType = fetcherDbType == null ? dbType : fetcherDbType;
      DataSourceWrapper dsw = new DataSourceWrapper(dsKey, weightStr,
          dataSource, fetcherDbType, i);
      dss.add(dsw);
    }
View Full Code Here


    Map<String, DataSourceWrapper> dataSourceMap = new HashMap<String, DataSourceWrapper>(
        list.size());
    Map<String, Integer> weightMap = new HashMap<String, Integer>(
        list.size());

    DBType dbType = null;
    for (DataSourceWrapper dsw : list) {
      String dsKey = dsw.getDataSourceKey();
      dataSourceMap.put(dsKey, dsw);
      weightMap
          .put(dsKey, isRead ? dsw.getWeight().r : dsw.getWeight().w);
View Full Code Here

          return dataSourceFetcher.getDataSource(key);
        }

        @Override
        public DBType getDataSourceDBType(String key) {
          DBType type = dataSourceFetcher.getDataSourceDBType(key);
          return type == null ? dbType : type; //���dataSourceFetcherûdbType����tgds��dbType
        }
      };
      List<DataSourceWrapper> dss = ConfigManager.buildDataSourceWrapper(dsKeyAndWeightCommaArray, wrapper);
      init(dss);
View Full Code Here

TOP

Related Classes of com.taobao.tddl.interact.rule.bean.DBType

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.