Code example for Connection

Methods: setAutoCommit, setTransactionIsolation

0
 
  private void createNewBootstrapConnection() 
  	throws SQLException 
  { 
    _bootstrapConn = DriverManager.getConnection(_url);
    _bootstrapConn.setAutoCommit(_autoCommit);
    _bootstrapConn.setTransactionIsolation(_isolationLevel);
  } 
 
  public void initBootstrapConn(boolean autoCommit,
                                String userName,
                                String password,
                                String hostName,
                                String dbName)
    throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException 
  { 
    initBootstrapConn(autoCommit, java.sql.Connection.TRANSACTION_REPEATABLE_READ, userName, password, hostName, dbName);
  } 
 
  public void recreateConnection() 
  	throws SQLException