public static Connection close ( Connection conn , Logger logExceptionTo , Object name ) { if ( conn == null ) return null ; try { conn . close ( ) ; } catch ( SQLException e ) { ( logExceptionTo == null ? logger : logExceptionTo ) . warn ( "SQLException closing " + ( name == null ? conn . toString ( ) : name ) + " ignored." , e ) ; } return null ; }
Handle closing a connection .