class Synapse::UnitOfWork::TransactionManager

Represents a mechanism for a unit of work to integrate with an underlying transaction management system

@abstract

Public Instance Methods

commit(transaction) click to toggle source

Commits the given transaction

@param [Object] transaction @return [undefined]

# File lib/synapse/uow/transaction_manager.rb, line 20
def commit(transaction)
  raise NotImplementedError
end
rollback(transaction) click to toggle source

Rolls back the given transaction

@param [Object] transaction @return [undefined]

# File lib/synapse/uow/transaction_manager.rb, line 28
def rollback(transaction)
  raise NotImplementedError
end
start() click to toggle source

Creates and returns a transaction for use by the unit of work

@abstract @return [Object]

# File lib/synapse/uow/transaction_manager.rb, line 12
def start
  raise NotImplementedError
end