org.apache.cayenne.tx

## Interface TransactionListener

-     public interface TransactionListener

  A callback that is notified as transaction progresses through stages. It can customize transaction isolation level, etc.
  Since:
    4.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `willAddConnection(Transaction tx, String connectionName, Connection connection)`
    `void` | `willCommit(Transaction tx)`
    `void` | `willRollback(Transaction tx)`

- - ### Method Detail

    - #### willCommit

          void willCommit(Transaction tx)

    - #### willRollback

          void willRollback(Transaction tx)

    - #### willAddConnection

          void willAddConnection(Transaction tx,
                                 String connectionName,
                                 Connection connection)

Copyright © 2001–2021 Apache Cayenne. All rights reserved.