# Uses of Interface
org.apache.cayenne.tx.Transaction

Packages that use Transaction
Package
Description
org.apache.cayenne.tx

- ## Uses of Transaction in org.apache.cayenne.tx

  Classes in org.apache.cayenne.tx that implement Transaction
  Modifier and Type
  Class
  Description
  `class`
  `BaseTransaction`
  `class`
  `CayenneTransaction`
  Represents a Cayenne-managed local Transaction.
  `class`
  `ExternalTransaction`
  Represents a container-managed transaction.
  `class`
  `ReadOnlyTransaction`
  A minimal `Transaction` for read-only (selecting) queries that run outside a managed transaction.
  Methods in org.apache.cayenne.tx that return Transaction
  Modifier and Type
  Method
  Description
  `Transaction`
  DefaultTransactionFactory.`createTransaction(TransactionDescriptor descriptor)`
  `default Transaction`
  TransactionFactory.`createTransaction()`
  `Transaction`
  TransactionFactory.`createTransaction(TransactionDescriptor descriptor)`
  `static Transaction`
  BaseTransaction.`getThreadTransaction()`
  Returns a Transaction associated with the current thread, or null if there is no such Transaction.
  Methods in org.apache.cayenne.tx with parameters of type Transaction
  Modifier and Type
  Method
  Description
  `static void`
  BaseTransaction.`bindThreadTransaction(Transaction transaction)`
  Binds a Transaction to the current thread.
  `default Connection`
  TransactionListener.`decorateConnection(Transaction tx, Connection connection)`
  This method could be used to decorate or substitute new connection initiated inside a Cayenne transaction.
  `protected <T> T`
  DefaultTransactionManager.BaseTransactionHandler.`performInTransaction(Transaction tx, TransactionalOperation<T> op, TransactionListener callback)`
  `void`
  TransactionListener.`willAddConnection(Transaction tx, String connectionName, Connection connection)`
  `void`
  TransactionListener.`willCommit(Transaction tx)`
  `void`
  TransactionListener.`willRollback(Transaction tx)`