Package org.apache.cayenne.tx
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 JdbcEventLogger
jdbcEventLogger
-
Constructor Summary
Constructors Constructor Description DefaultTransactionFactory(RuntimeProperties properties, JdbcEventLogger jdbcEventLogger)
-
Method Summary
Modifier and Type Method Description Transaction
createTransaction()
Transaction
createTransaction(TransactionDescriptor descriptor)
-
Field Details
-
externalTransactions
protected boolean externalTransactions -
jdbcEventLogger
-
-
Constructor Details
-
DefaultTransactionFactory
-
-
Method Details
-
createTransaction
- Specified by:
createTransaction
in interfaceTransactionFactory
-
createTransaction
- Specified by:
createTransaction
in interfaceTransactionFactory
- Parameters:
descriptor
- with required transaction properties- Returns:
- new transaction
- Since:
- 4.1
-