- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Connection c =
DataSource dataSource;dataSource.getConnection()
String url;DriverManager.getConnection(url)
IdentityDatabaseUtil.getDBConnection()
- Smart code suggestions by Codota
}
public static void executeScript(Connection con, String script, boolean continueOnError) throws Exception { LineNumberReader in = new LineNumberReader(new StringReader( script )); List<String> statements = new LinkedList<>(); JdbcTestUtils.splitSqlScript(JdbcTestUtils.readScript(in), ';', statements); if (continueOnError){ con.setAutoCommit(true);
JdbcTestUtils.splitSqlScript(sqlData, ';', scriptlines); for (String sqlOri : scriptlines) { try {