List of usage examples for org.springframework.jdbc.core.namedparam NamedParameterJdbcOperations getJdbcOperations
JdbcOperations getJdbcOperations();
From source file:org.geoserver.jdbcstore.internal.JDBCQueryHelper.java
protected void runScript(Resource script) { NamedParameterJdbcOperations template = new NamedParameterJdbcTemplate(ds); try (InputStream in = script.in()) { Util.runScript(in, template.getJdbcOperations(), null); } catch (IOException ex) { throw new IllegalArgumentException("Could not execute provided sql script", ex); }/*from w ww . java2s .c o m*/ }