public void closePhysically ( ) throws SQLException { SQLException exception = null ; if ( ! isClosed && this . connection != null && ! this . connection . isClosed ( ) ) { try { this . connection . close ( ) ; } catch ( SQLException e ) { //catch and hold so that the rest of the finalizer is run too. Throw at the end if present. exception = e ; } } this . isClosed = true ; this . pooledConnection = null ; this . connection = null ; this . connectionDefaults = null ; this . connectionListeners . clear ( ) ; this . connectionListeners = null ; if ( exception != null ) { throw exception ; } }
Closes the connection physically . The pool is not notified of this .