Examples of SqlMapConfigParser


Examples of com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser

   * @param inputStream 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

Examples of com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser

   *               in the sql-map-config.xml configuration file.  This 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

Examples of com.ibatis.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 (Resource configLocation : configLocations) {
      InputStream is = configLocation.getInputStream();
      try {
        client = configParser.parse(is, properties);
      }
      catch (RuntimeException ex) {
        throw new NestedIOException("Failed to parse config resource: " + configLocation, ex.getCause());
      }
    }
View Full Code Here

Examples of com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser

   * @param props
   * @return
   */
  public static SqlMapClient buildSqlMapClientByJTester(InputStream inputStream, Properties props) {
    // return new SqlMapConfigParserEx().parse(inputStream, props);
    return new SqlMapConfigParser().parse(inputStream, props);
  }
View Full Code Here

Examples of com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser

     *               The 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

Examples of com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser

     *               achieve some level of programmatic 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

Examples of com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser

     * @param inputStream 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

Examples of com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser

     *               in the sql-map-config.xml configuration file.  This 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

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

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

   *            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
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.