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

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


        throw new NestedIOException("Failed to parse config resource: " + configLocation, ex.getCause());
      }
    }

    if (mappingLocations != null) {
      SqlMapParser mapParser = SqlMapParserFactory.createSqlMapParser(configParser);
      for (Resource mappingLocation : mappingLocations) {
        try {
          mapParser.parse(mappingLocation.getInputStream());
        }
        catch (NodeletException ex) {
          throw new NestedIOException("Failed to parse mapping resource: " + mappingLocation, ex);
        }
      }
View Full Code Here


      }
      catch (Exception ex) {
        throw new IllegalStateException("iBATIS 2.3.2 'state' field not found in SqlMapConfigParser class - " +
            "please upgrade to IBATIS 2.3.2 or higher in order to use the new 'mappingLocations' feature. " + ex);
      }
      return new SqlMapParser(state);
    }
View Full Code Here

        throw new NestedIOException("Failed to parse config resource: " + configLocations[i], ex.getCause());
      }
    }

    if (mappingLocations != null) {
      SqlMapParser mapParser = SqlMapParserFactory.createSqlMapParser(configParser);
      for (int i = 0; i < mappingLocations.length; i++) {
        try {
          mapParser.parse(mappingLocations[i].getInputStream());
        }
        catch (NodeletException ex) {
          throw new NestedIOException("Failed to parse mapping resource: " + mappingLocations[i], ex);
        }
      }
View Full Code Here

      }
      catch (Exception ex) {
        throw new IllegalStateException("iBATIS 2.3.2 'state' field not found in SqlMapConfigParser class - " +
            "please upgrade to IBATIS 2.3.2 or higher in order to use the new 'mappingLocations' feature. " + ex);
      }
      return new SqlMapParser(state);
    }
View Full Code Here

        throw new NestedIOException("Failed to parse config resource: " + configLocation, ex.getCause());
      }
    }

    if (mappingLocations != null) {
      SqlMapParser mapParser = SqlMapParserFactory.createSqlMapParser(configParser);
      for (Resource mappingLocation : mappingLocations) {
        try {
          mapParser.parse(mappingLocation.getInputStream());
        }
        catch (NodeletException ex) {
          throw new NestedIOException("Failed to parse mapping resource: " + mappingLocation, ex);
        }
      }
View Full Code Here

      }
      catch (Exception ex) {
        throw new IllegalStateException("iBATIS 2.3.2 'state' field not found in SqlMapConfigParser class - " +
            "please upgrade to IBATIS 2.3.2 or higher in order to use the new 'mappingLocations' feature. " + ex);
      }
      return new SqlMapParser(state);
    }
View Full Code Here

          state.getConfig().getErrorContext().setResource(url);
          inputStream = Resources.getUrlAsStream(url);
        } else {
          throw new SqlMapException("The <sqlMap> element requires either a resource or a url attribute.");
        }
        new SqlMapParser(state).parse(inputStream);
      } catch (Throwable e) {
        String error = String.format("loading sql map resource[%s] error:%s.", resource, e.getMessage());
        boolean throwException = ConfigurationHelper
            .getBoolean(ConfigurationHelper.IBATIS_SQLMAP_THROW_EXCEPTION);
        if (throwException) {
View Full Code Here

TOP

Related Classes of com.ibatis.sqlmap.engine.builder.xml.SqlMapParser

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.