示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldRollbackParentByDefault()
        public virtual void ShouldRollbackParentByDefault()
        {
            // When
            _placeboTx.close();

            // Then
            verify(_kernelTransaction).failure();
        }
示例#2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void tearDown()
        public virtual void TearDown()
        {
            if (_bridge.hasTransaction())
            {
                _tx.failure();
                _tx.close();
            }
        }
示例#3
0
 private void NewTransaction()
 {
     if (_tx != null)
     {
         _tx.success();
         _tx.close();
     }
     _tx = _graph.beginTx();
 }
示例#4
0
 public virtual void Success()
 {
     try
     {
         if (_tx != null)
         {
             _tx.success();
             _tx.close();
         }
     }
     finally
     {
         _tx = null;
     }
 }
示例#5
0
 public override Void DoWork(HighlyAvailableGraphDatabase state)
 {
     if (_successful)
     {
         _tx.success();
     }
     _tx.close();
     return(null);
 }
 public override void NotifyStatusChanged(object instance, LifecycleStatus from, LifecycleStatus to)
 {
     if ((LifecycleStatus.STOPPED == to) && (instance is RecordStorageEngine))
     {
         Transaction.success();
         Transaction.close();
         TransactionClosedConflict = true;
     }
 }
示例#7
0
 public virtual void FinishTx(bool success)
 {
     if (_tx != null)
     {
         if (success)
         {
             _tx.success();
         }
         _tx.close();
         _tx = null;
     }
 }
示例#8
0
 private void CloseTx()
 {
     _tx.success();
     _tx.close();
 }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void tearDown()
        public virtual void TearDown()
        {
            _tx.close();
        }
示例#10
0
 public virtual void CloseTransaction()
 {
     _transaction.close();
 }