8283848586878889
context = new VelocityContext(); for (Map.Entry<String, ?> e : values.entrySet()) { context.put(e.getKey(), e.getValue()); } } catch (Exception e) { throw new DataAccessException("Error in velocity interceptor:" + e.getMessage(), e); } }
122123124125126127128129
StringWriter sw = new StringWriter(); engine.evaluate(context, sw, "sql", new StringReader(sql)); sw.flush(); return sw.toString(); } catch (IOException e) { throw new DataAccessException("Error in velocity decoration:" + e.getMessage()); } }