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.7 lib/do_oracle/transaction.rb
do_oracle-0.10.7-x86-mswin32-60 lib/do_oracle/transaction.rb
do_oracle-0.10.7-x86-mingw32 lib/do_oracle/transaction.rb
do_oracle-0.10.7-java lib/do_oracle/transaction.rb
do_oracle-0.10.6 lib/do_oracle/transaction.rb
do_oracle-0.10.6-x86-mswin32-60 lib/do_oracle/transaction.rb
do_oracle-0.10.6-x86-mingw32 lib/do_oracle/transaction.rb
do_oracle-0.10.6-java lib/do_oracle/transaction.rb
do_oracle-0.10.5 lib/do_oracle/transaction.rb
do_oracle-0.10.5-x86-mswin32-60 lib/do_oracle/transaction.rb
do_oracle-0.10.5-x86-mingw32 lib/do_oracle/transaction.rb
do_oracle-0.10.5-java lib/do_oracle/transaction.rb
do_oracle-0.10.4 lib/do_oracle/transaction.rb
do_oracle-0.10.4-x86-mswin32-60 lib/do_oracle/transaction.rb
do_oracle-0.10.4-x86-mingw32 lib/do_oracle/transaction.rb
do_oracle-0.10.4-java lib/do_oracle/transaction.rb
do_oracle-0.10.4.rc2 lib/do_oracle/transaction.rb
do_oracle-0.10.4.rc2-x86-mswin32-60 lib/do_oracle/transaction.rb
do_oracle-0.10.4.rc2-x86-mingw32 lib/do_oracle/transaction.rb
do_oracle-0.10.4.rc2-java lib/do_oracle/transaction.rb