private void closeConnection() {
   try {
     if (statement != null) statement.close();
     if (connection != null) {
       JDBCExceptionReporter.logWarnings(connection.getWarnings());
       connection.clearWarnings();
       connectionProvider.closeConnection(connection);
       connectionProvider.close();
     }
   } catch (Exception e) {
     System.err.println("Could not close connection");
     e.printStackTrace();
   }
 }
예제 #2
0
파일: DBManager.java 프로젝트: nh13/IGV
 public SQLWarning getWarnings() throws SQLException {
   return conn.getWarnings();
 }