# Class DefaultTransactionFactory

java.lang.Object
org.apache.cayenne.tx.DefaultTransactionFactory

All Implemented Interfaces:
  `TransactionFactory`

public class DefaultTransactionFactory extends Object implements TransactionFactory

Since:
  4.0

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected boolean`
  `externalTransactions`
  `protected SQLLogger`
  `sqlLogger`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultTransactionFactory(RuntimeProperties properties, SQLLogger sqlLogger)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Transaction`
  `createTransaction(TransactionDescriptor descriptor)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface TransactionFactory

  `createTransaction`

- ## Field Details

  - ### externalTransactions

    protected boolean externalTransactions

  - ### sqlLogger

    protected SQLLogger sqlLogger

- ## Constructor Details

  - ### DefaultTransactionFactory

    public DefaultTransactionFactory(RuntimeProperties properties, SQLLogger sqlLogger)

- ## Method Details

  - ### createTransaction

    public Transaction createTransaction(TransactionDescriptor descriptor)
    Specified by:
      `createTransaction` in interface `TransactionFactory`
    Parameters:
      `descriptor` - with required transaction properties
    Returns:
      new transaction
    Since:
      4.1