示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public void afterRollback(org.neo4j.storageengine.api.txstate.ReadableTransactionState state, org.neo4j.kernel.api.KernelTransaction tx, TransactionHooksState hooksState)
        public virtual void AfterRollback(ReadableTransactionState state, KernelTransaction tx, TransactionHooksState hooksState)
        {
            if (hooksState == null)
            {
                return;
            }
            foreach (Pair <TransactionHook, TransactionHook_Outcome> hookAndOutcome in hooksState.HooksWithOutcome())
            {
                hookAndOutcome.First().afterRollback(state, tx, hookAndOutcome.Other());
            }
        }
示例#2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public void afterCommit(org.neo4j.storageengine.api.txstate.ReadableTransactionState state, org.neo4j.kernel.api.KernelTransaction tx, TransactionHooksState hooksState)
        public virtual void AfterCommit(ReadableTransactionState state, KernelTransaction tx, TransactionHooksState hooksState)
        {
            if (hooksState == null)
            {
                return;
            }
            foreach (Pair <TransactionHook, TransactionHook_Outcome> hookAndOutcome in hooksState.HooksWithOutcome())
            {
                TransactionHook         hook    = hookAndOutcome.First();
                TransactionHook_Outcome outcome = hookAndOutcome.Other();
                hook.afterCommit(state, tx, outcome);
            }
        }