Module | DataMapper::Transaction::DataObjectsAdapter |
In: |
lib/dm-transactions/adapters/dm-do-adapter.rb
|
Retrieve the current transaction for this Adapter.
Everything done by this Adapter is done within the context of this Transaction.
@return [Transaction]
the 'current' transaction for this Adapter.
@api private
Pop the ‘current’ Transaction from the per thread Transaction stack so that everything done by this Adapter is no longer necessarily within the context of said Transaction.
@return [Transaction]
the former 'current' transaction.
@api private
Pushes the given Transaction onto the per thread Transaction stack so that everything done by this Adapter is done within the context of said Transaction.
@param [Transaction] transaction
a Transaction to be the 'current' transaction until popped.
@return [Array(Transaction)]
the stack of active transactions for the current thread
@api private
Produces a fresh transaction primitive for this Adapter
Used by Transaction to perform its various tasks.
@return [Object]
a new Object that responds to :close, :begin, :commit, and :rollback,
@api private