public ConnectionCreator build() { if ( driver == null ) { return new DriverManagerConnectionCreator( serviceRegistry, url, connectionProps, autoCommit, isolation ); } else { return new DriverConnectionCreator( driver, serviceRegistry, url, connectionProps, autoCommit, isolation ); } } }
@Override protected Connection makeConnection(String url, Properties connectionProps) { try { return driver.connect( url, connectionProps ); } catch (SQLException e) { throw convertSqlException( "Error calling Driver#connect", e ); } } }
public ConnectionCreator build() { if ( driver == null ) { return new DriverManagerConnectionCreator( serviceRegistry, url, connectionProps, autoCommit, isolation ); } else { return new DriverConnectionCreator( driver, serviceRegistry, url, connectionProps, autoCommit, isolation ); } } }
@Override protected Connection makeConnection(String url, Properties connectionProps) { try { return driver.connect( url, connectionProps ); } catch (SQLException e) { throw convertSqlException( "Error calling Driver#connect", e ); } } }