Class: Synapse::UnitOfWork::TransactionManager Abstract
- Inherits:
-
Object
- Object
- Synapse::UnitOfWork::TransactionManager
- Defined in:
- lib/synapse/uow/transaction_manager.rb
Overview
This class is abstract.
Represents a mechanism for a unit of work to integrate with an underlying transaction management system
Instance Method Summary collapse
-
#commit(transaction) ⇒ undefined
Commits the given transaction.
-
#rollback(transaction) ⇒ undefined
Rolls back the given transaction.
-
#start ⇒ Object
abstract
Creates and returns a transaction for use by the unit of work.
Instance Method Details
#commit(transaction) ⇒ undefined
Commits the given transaction
20 21 22 |
# File 'lib/synapse/uow/transaction_manager.rb', line 20 def commit(transaction) raise NotImplementedError end |
#rollback(transaction) ⇒ undefined
Rolls back the given transaction
28 29 30 |
# File 'lib/synapse/uow/transaction_manager.rb', line 28 def rollback(transaction) raise NotImplementedError end |
#start ⇒ Object
This method is abstract.
Creates and returns a transaction for use by the unit of work
12 13 14 |
# File 'lib/synapse/uow/transaction_manager.rb', line 12 def start raise NotImplementedError end |