Package com.ibatis.sqlmap.engine.builder.xml

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


   *               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

    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

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

     *               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

     *               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

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

     *               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

TOP

Related Classes of com.ibatis.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.