ValidateBeginTransaction() private method

private ValidateBeginTransaction ( ) : void
return void
Beispiel #1
0
        public AbstractTransaction(
            IsolationLevel isolationLevel,
            AbstractDBConnection connection,
            String transactionName)
        {
			connection.ValidateBeginTransaction();
            _transactionName = transactionName;
            _connection = connection;
            _isolationLevel = isolationLevel;
            try
            {
                _connection.JdbcConnection.setAutoCommit(false);
                _connection.JdbcConnection.setTransactionIsolation(
                convertIsolationLevel(isolationLevel));
            }
            catch (SQLException exp)
            {
                throw new System.InvalidOperationException(exp.Message, exp);
            }
        }
 public AbstractTransaction(
     IsolationLevel isolationLevel,
     AbstractDBConnection connection,
     String transactionName)
 {
     connection.ValidateBeginTransaction();
     _transactionName = transactionName;
     _connection      = connection;
     _isolationLevel  = isolationLevel;
     try
     {
         _connection.JdbcConnection.setAutoCommit(false);
         _connection.JdbcConnection.setTransactionIsolation(
             convertIsolationLevel(isolationLevel));
     }
     catch (SQLException exp)
     {
         throw new System.InvalidOperationException(exp.Message, exp);
     }
 }