public void close() throws SQLException { if (!closed) { closed = true; // Per specification, if onConnectionClose throws, this method will throw // a SQLException, but statement will still be closed. try { meta.closeConnection(handle); driver.handler.onConnectionClose(this); if (null != kerberosConnection) { kerberosConnection.stopRenewalThread(); } } catch (RuntimeException e) { throw HELPER.createException("While closing connection", e); } } }
public void close() throws SQLException { if (!closed) { closed = true; // Per specification, if onConnectionClose throws, this method will throw // a SQLException, but statement will still be closed. try { meta.closeConnection(handle); driver.handler.onConnectionClose(this); if (null != kerberosConnection) { kerberosConnection.stopRenewalThread(); } } catch (RuntimeException e) { throw HELPER.createException("While closing connection", e); } } }