Class: Synapse::UnitOfWork::TransactionManager Abstract

Inherits:
Object
  • Object
show all
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

Instance Method Details

#commit(transaction) ⇒ undefined

Commits the given transaction

Parameters:

  • transaction (Object)

Returns:

  • (undefined)

Raises:

  • (NotImplementedError)


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

Parameters:

  • transaction (Object)

Returns:

  • (undefined)

Raises:

  • (NotImplementedError)


28
29
30
# File 'lib/synapse/uow/transaction_manager.rb', line 28

def rollback(transaction)
  raise NotImplementedError
end

#startObject

This method is abstract.

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

Returns:

  • (Object)

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/synapse/uow/transaction_manager.rb', line 12

def start
  raise NotImplementedError
end