public void close() throws SQLException { try { queryExecutor.stop(); } catch (Exception e) { e.printStackTrace(); } finally { closed = true; } }
public ResultSet executeQuery(final String query, Map<String, Object> parameters) throws SQLException { if (log.isInfoEnabled()) log.info("Executing query: " + query + "\n with params" + parameters); checkReadOnly(query); try { final ExecutionResult result = queryExecutor.executeQuery(query, parameters); return debug(toResultSet(result)); } catch (Exception e) { throw new SQLException(e); } }