public static Connection createConnection(boolean autoCommit,boolean readOnly,int trxLevel){
  Connection conn=s_cc.getConnection(autoCommit,trxLevel);
  if (conn == null) {
    throw new IllegalStateException("DB.getConnectionRO - @NoDBConnection@");
  }
  try {
    if (conn.getAutoCommit() != autoCommit) {
      throw new IllegalStateException("Failed to set the requested auto commit mode on connection. [autocommit=" + autoCommit + "]");
    }
  }
 catch (  SQLException e) {
  }
  return conn;
}

public static Connection createConnection ( boolean autoCommit , boolean readOnly , int trxLevel ) { Connection conn = s_cc . getConnection ( autoCommit , trxLevel ) ; if ( conn == null ) { throw new IllegalStateException ( "DB.getConnectionRO - @NoDBConnection@" ) ; } try { if ( conn . getAutoCommit ( ) != autoCommit ) { throw new IllegalStateException ( "Failed to set the requested auto commit mode on connection. [autocommit=" + autoCommit + "]" ) ; } } catch ( SQLException e ) { } return conn ; }
create new connection . the connection must be closed explicitly by the application
