Exemplo n.º 1
0
        private void Execute(StatementDeserializer statements, ExecutionResultSerializer output, IList <Neo4jError> errors, HttpServletRequest request)
        {
            ExecuteStatements(statements, output, errors, request);

            if (Neo4jError.shouldRollBackOn(errors))
            {
                Rollback(errors);
            }
            else
            {
                _context.suspendSinceTransactionsAreStillThreadBound();
                long lastActiveTimestamp = _registry.release(_id, this);
                output.TransactionStatus(lastActiveTimestamp);
            }
        }