Examples of InputDbQueryIN


Examples of com.lingbobu.flashdb.transfer.impl.InputDbQueryIN

    Map<String, Object[]> splitShardsKeys = splitShardsKeys(values);
    List<TransferInput> partInputs = new ArrayList<TransferInput>();
    for (Map.Entry<String, Object[]> entry : splitShardsKeys.entrySet()) {
      String tableId = entry.getKey();
      String sql = dataSourceSql.replace("{TABLE_ID}", tableId);
      TransferInput[] childParts = new InputDbQueryIN(dataSource, sql, entry.getValue()).getPartInputs();
      for (TransferInput childPart : childParts) {
        partInputs.add(childPart);
      }
    }
    return partInputs.toArray(new TransferInput[partInputs.size()]);
View Full Code Here

Examples of com.lingbobu.flashdb.transfer.impl.InputDbQueryIN

    this.beanFactory = beanFactory;
  }
 
  public TransferInput call(String dataSourceBean, String dataSourceSql, Object inValues) {
    DataSource dataSource = beanFactory.getBean(dataSourceBean, DataSource.class);
    return new InputDbQueryIN(dataSource, dataSourceSql, inValues);
  }
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.