private void closeDatabaseConnection(Connection connection){
  if (connection == null)   return;
  try {
    connection.close();
  }
 catch (  SQLException e) {
  }
  connection=null;
  return;
}

private void closeDatabaseConnection ( Connection connection ) { if ( connection == null ) return ; try { connection . close ( ) ; } catch ( SQLException e ) { } connection = null ; return ; }
close a database connection
