Package org.springframework.jdbc.core.namedparam

Examples of org.springframework.jdbc.core.namedparam.ExposedParsedSql


   * @param sql the original SQL
   * @return a representation of the parsed SQL statement
   */
  protected ExposedParsedSql getParsedSql(String sql) {
    if (getCacheLimit() <= 0) {
      return new ExposedParsedSql( NamedParameterUtils.parseSqlStatement(sql) );
    }
    synchronized (this.parsedSqlCache) {
      ExposedParsedSql parsedSql = this.parsedSqlCache.get(sql);
      if (parsedSql == null) {
        parsedSql = new ExposedParsedSql( NamedParameterUtils.parseSqlStatement(sql) );
        this.parsedSqlCache.put(sql, parsedSql);
      }
      return parsedSql;
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.core.namedparam.ExposedParsedSql

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.