Sha256: d3cd53d6626c0c30aa3b92d51f5b416e2f0aa14ecbd6148199374a5dd4d9398e

Contents?: true

Size: 745 Bytes

Versions: 76

Compression:

Stored size: 745 Bytes

Contents

module DataObjects

  module Oracle

    class Transaction < DataObjects::Transaction

      def begin
        connection.instance_variable_get("@connection").autocommit = false
      end

      def commit
        connection.instance_variable_get("@connection").commit
      ensure
        connection.instance_variable_get("@connection").autocommit = true
      end

      def rollback
        connection.instance_variable_get("@connection").rollback
      ensure
        connection.instance_variable_get("@connection").autocommit = true
      end

      def rollback_prepared
        # TODO: what should be done differently?
        rollback
      end

      def prepare
        # TODO: what should be done here?
      end

    end

  end

end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
do_oracle-0.10.17 lib/do_oracle/transaction.rb
do_oracle-0.10.17-x86-mswin32-60 lib/do_oracle/transaction.rb
do_oracle-0.10.17-x86-mingw32 lib/do_oracle/transaction.rb
do_oracle-0.10.17-java lib/do_oracle/transaction.rb
do_oracle-0.10.16 lib/do_oracle/transaction.rb
do_oracle-0.10.16-x86-mswin32-60 lib/do_oracle/transaction.rb
do_oracle-0.10.16-x86-mingw32 lib/do_oracle/transaction.rb
do_oracle-0.10.16-java lib/do_oracle/transaction.rb
do_oracle-0.10.15 lib/do_oracle/transaction.rb
do_oracle-0.10.15-x86-mswin32-60 lib/do_oracle/transaction.rb
do_oracle-0.10.15-x86-mingw32 lib/do_oracle/transaction.rb
do_oracle-0.10.15-java lib/do_oracle/transaction.rb
do_oracle-0.10.14 lib/do_oracle/transaction.rb
do_oracle-0.10.14-x86-mswin32-60 lib/do_oracle/transaction.rb
do_oracle-0.10.14-x86-mingw32 lib/do_oracle/transaction.rb
do_oracle-0.10.14-java lib/do_oracle/transaction.rb
do_oracle-0.10.13 lib/do_oracle/transaction.rb
do_oracle-0.10.13-x86-mswin32-60 lib/do_oracle/transaction.rb
do_oracle-0.10.13-x86-mingw32 lib/do_oracle/transaction.rb
do_oracle-0.10.13-java lib/do_oracle/transaction.rb