Class: DataObjects::Transaction

Class | DataObjects::Transaction
In: | lib/data_objects/transaction.rb
Parent: | Object

### Methods

begin begin_prepared close commit commit_prepared create_for_uri new prepare prepare rollback rollback_prepared

### Constants

HOST | = | "#{Socket::gethostbyname(Socket::gethostname)[0]}" rescue "localhost" |  | The host name. Note, this relies on the host name being configured and resolvable using DNS

### Attributes

connection | [R] | The connection object allocated for this transaction
id | [R] | A unique ID for this transaction

### Public Class methods

create_for_uri(uri)

Instantiate the Transaction subclass that‘s appropriate for this uri scheme

new(uri)

Creates a Transaction bound to a connection for the given DataObjects::URI

### Public Instance methods

begin()
begin_prepared()
close()

Close the connection for this Transaction

commit()
commit_prepared()
prepare()
prepare()
rollback()
rollback_prepared()

[Validate]