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 DriverManager.getConnection( url, connectionProps ); } catch (SQLException e) { throw convertSqlException( "Error calling DriverManager#getConnection", 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 DriverManager.getConnection( url, connectionProps ); } catch (SQLException e) { throw convertSqlException( "Error calling DriverManager#getConnection", e ); } } }