Package org.g4studio.core.orm.xibatis.sqlmap.engine.builder.xml

Examples of org.g4studio.core.orm.xibatis.sqlmap.engine.builder.xml.SqlMapConfigParser


    if (ObjectUtils.isEmpty(configLocations)) {
      throw new IllegalArgumentException("At least 1 'configLocation' entry is required");
    }

    SqlMapClient client = null;
    SqlMapConfigParser configParser = new SqlMapConfigParser();
    for (int i = 0; i < configLocations.length; i++) {
      InputStream is = configLocations[i].getInputStream();
      try {
        client = configParser.parse(is, properties);
      } catch (RuntimeException ex) {
        throw new NestedIOException("Failed to parse config resource: " + configLocations[i], ex.getCause());
      }
    }
View Full Code Here


   *            reader should read an well formed sql-map-config.xml file.
   * @return An SqlMapClient instance.
   */
  public static SqlMapClient buildSqlMapClient(Reader reader) {
    // return new XmlSqlMapClientBuilder().buildSqlMap(reader);
    return new SqlMapConfigParser().parse(reader);
  }
View Full Code Here

   *            configuration.
   * @return An SqlMapClient instance.
   */
  public static SqlMapClient buildSqlMapClient(Reader reader, Properties props) {
    // return new XmlSqlMapClientBuilder().buildSqlMap(reader, props);
    return new SqlMapConfigParser().parse(reader, props);
  }
View Full Code Here

   *            An InputStream instance that reads an sql-map-config.xml file.
   *            The stream should read a well formed sql-map-config.xml file.
   * @return An SqlMapClient instance.
   */
  public static SqlMapClient buildSqlMapClient(InputStream inputStream) {
    return new SqlMapConfigParser().parse(inputStream);
  }
View Full Code Here

   *            provides an easy way to achieve some level of programmatic
   *            configuration.
   * @return An SqlMapClient instance.
   */
  public static SqlMapClient buildSqlMapClient(InputStream inputStream, Properties props) {
    return new SqlMapConfigParser().parse(inputStream, props);
  }
View Full Code Here

TOP

Related Classes of org.g4studio.core.orm.xibatis.sqlmap.engine.builder.xml.SqlMapConfigParser

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.