Class: DataObjects::Mysql::Transaction

### Home Classes Methods

### In Files

- lib/do_mysql/transaction.rb

### Parent

DataObjects::Transaction

### Methods

- #begin_prepared
- #commit_prepared
- #prepare
- #rollback_prepared

### Files

- LICENSE

### Class/Module Index

Quicksearch

- DataObjects
- DataObjects::Mysql
- DataObjects::Mysql::Connection
- DataObjects::Mysql::Encoding
- DataObjects::Mysql::Transaction
- Object

No matching classes.

# DataObjects::Mysql::Transaction

### Public Instance Methods

begin_prepared() click to toggle source

    # File lib/do_mysql/transaction.rb, line 8
    def begin_prepared
      cmd = "XA START '#{id}'"
      connection.create_command(cmd).execute_non_query
    end

commit_prepared() click to toggle source

    # File lib/do_mysql/transaction.rb, line 13
    def commit_prepared
      cmd = "XA COMMIT '#{id}'"
      connection.create_command(cmd).execute_non_query
    end

prepare() click to toggle source

    # File lib/do_mysql/transaction.rb, line 23
    def prepare
      finalize_transaction
      cmd = "XA PREPARE '#{id}'"
      connection.create_command(cmd).execute_non_query
    end

rollback_prepared() click to toggle source

    # File lib/do_mysql/transaction.rb, line 18
    def rollback_prepared
      cmd = "XA ROLLBACK '#{id}'"
      connection.create_command(cmd).execute_non_query
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.