private Connection openConnection(boolean autocommit) throws SQLException {
  Connection conn=dataSrc != null ? dataSrc.getConnection() : DriverManager.getConnection(connUrl,user,passwd);
  if (testMode)   opened.increment();
  conn.setAutoCommit(autocommit);
  return conn;
}

private Connection openConnection ( boolean autocommit ) throws SQLException { Connection conn = dataSrc != null ? dataSrc . getConnection ( ) : DriverManager . getConnection ( connUrl , user , passwd ) ; if ( testMode ) opened . increment ( ) ; conn . setAutoCommit ( autocommit ) ; return conn ; }
gets connection from a pool .
