public static CConnection connect(final CDatabaseConfiguration configuration) throws CouldntLoadDriverException, CouldntConnectException {
  checkDriver(configuration);
  try {
    return new CConnection(configuration);
  }
 catch (  final SQLException e) {
    CUtilityFunctions.logException(e);
    throw new CouldntConnectException(e,e.getErrorCode(),e.getSQLState());
  }
}

public static CConnection connect ( final CDatabaseConfiguration configuration ) throws CouldntLoadDriverException , CouldntConnectException { checkDriver ( configuration ) ; try { return new CConnection ( configuration ) ; } catch ( final SQLException e ) { CUtilityFunctions . logException ( e ) ; throw new CouldntConnectException ( e , e . getErrorCode ( ) , e . getSQLState ( ) ) ; } }
tries to connect to the database using the given connection options .
