Example #1
0
            public override T Next()
            {
                if (Elements.Count == 1)
                {
                    // terminate transaction before returning the last element
                    Tx.markForTermination(Org.Neo4j.Kernel.Api.Exceptions.Status_Transaction.Terminated);
                }
                T element = Elements.RemoveFirst();

                if (element == default(T))
                {
                    throw new NoSuchElementException();
                }
                return(element);
            }
Example #2
0
 public override bool MarkForTermination(Status reason)
 {
     _tx.markForTermination(reason);
     return(true);
 }
Example #3
0
 public override void Terminate()
 {
     _currentTransaction.markForTermination(Org.Neo4j.Kernel.Api.Exceptions.Status_Transaction.Terminated);
 }
Example #4
0
 public override void MarkForTermination(Status reason)
 {
     Internal.markForTermination(reason);
 }