Package org.jtester.module.spring.ibatis

Source Code of org.jtester.module.spring.ibatis.SqlMapClientBuilderEx

package org.jtester.module.spring.ibatis;

import java.io.InputStream;
import java.util.Properties;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;
import com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser;

public class SqlMapClientBuilderEx extends SqlMapClientBuilder {
  /**
   * 构造jtester的SqlMapConfigParser来构造SqlMapClient
   *
   * @param inputStream
   * @param props
   * @return
   */
  public static SqlMapClient buildSqlMapClientByJTester(InputStream inputStream, Properties props) {
    // return new SqlMapConfigParserEx().parse(inputStream, props);
    return new SqlMapConfigParser().parse(inputStream, props);
  }
}
TOP

Related Classes of org.jtester.module.spring.ibatis.SqlMapClientBuilderEx

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.