Sha256: b22b8efe9b87d14ed0ff723f6e5e06fed20bcf2e38cb968f5450d2775e8bb393

Contents?: true

Size: 559 Bytes

Versions: 38

Compression:

Stored size: 559 Bytes

Contents

module Neo4j
  module Embedded
    class EmbeddedTransaction < Neo4j::Transaction::Base
      attr_reader :root_tx

      def initialize(session)
        super
        @root_tx = @session.begin_tx
      end

      def acquire_read_lock(entity)
        @root_tx.acquire_read_lock(entity)
      end

      def acquire_write_lock(entity)
        @root_tx.acquire_write_lock(entity)
      end

      def delete
        @root_tx.failure
        @root_tx.close
      end

      def commit
        @root_tx.success
        @root_tx.close
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
neo4j-core-8.1.4 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-8.1.3 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-8.1.2 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-8.1.1 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-8.1.0 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-8.0.4 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-8.0.3 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-8.0.2 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-8.0.1 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-7.2.4 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-8.0.0 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-7.2.3 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-7.2.2 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-7.2.1 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-7.2.0 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-7.1.2 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-7.0.9 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-7.1.1 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-7.1.0 lib/neo4j-embedded/embedded_transaction.rb
neo4j-core-7.0.8 lib/neo4j-embedded/embedded_transaction.rb