示例#1
0
 public void close() throws SQLException {
   try {
     queryExecutor.stop();
   } catch (Exception e) {
     e.printStackTrace();
   } finally {
     closed = true;
   }
 }
示例#2
0
 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);
   }
 }