@Override public Connection connect(String url,Properties info) throws SQLException {
  try {
    if (info == null) {
      info=new Properties();
    }
    if (!acceptsURL(url)) {
      return null;
    }
    if (url.equals(DEFAULT_URL)) {
      return DEFAULT_CONNECTION.get();
    }
    Connection c=DbUpgrade.connectOrUpgrade(url,info);
    if (c != null) {
      return c;
    }
    return new JdbcConnection(url,info);
  }
 catch (  Exception e) {
    throw DbException.toSQLException(e);
  }
}

@ Override public Connection connect ( String url , Properties info ) throws SQLException { try { if ( info == null ) { info = new Properties ( ) ; } if ( ! acceptsURL ( url ) ) { return null ; } if ( url . equals ( DEFAULT_URL ) ) { return DEFAULT_CONNECTION . get ( ) ; } Connection c = DbUpgrade . connectOrUpgrade ( url , info ) ; if ( c != null ) { return c ; } return new JdbcConnection ( url , info ) ; } catch ( Exception e ) { throw DbException . toSQLException ( e ) ; } }
open a database connection . this method should not be called by an application . instead , the method drivermanager . getconnection should be used .
