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)


18
# File 'lib/synapse/uow/transaction_manager.rb', line 18

def commit(transaction); end

#rollback(transaction) ⇒ undefined

Rolls back the given transaction

Parameters:

  • transaction (Object)

Returns:

  • (undefined)


24
# File 'lib/synapse/uow/transaction_manager.rb', line 24

def rollback(transaction); end

#startObject

This method is abstract.

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

Returns:

  • (Object)


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

def start; end