Interface SpiTransactionManager

All Known Implementing Classes:
TransactionManager

public interface SpiTransactionManager
Service provider interface for the transaction manager.
  • Method Details

    • scope

      Return the scope manager for this server.
    • dataSource

      DataSource dataSource()
      Return the main DataSource.
    • readOnlyDataSource

      DataSource readOnlyDataSource()
      Return the read only DataSource (if defined).
    • active

      SpiTransaction active()
      Return the currently active transaction (can be null).
    • externalBeginTransaction

      ScopedTransaction externalBeginTransaction(SpiTransaction transaction, TxScope txScope)
      Push an externally managed transaction into scope (e.g. Spring managed transaction).
    • externalRemoveTransaction

      void externalRemoveTransaction()
      Called when an externally managed transaction has completed.
    • notifyOfCommit

      void notifyOfCommit(SpiTransaction transaction)
      Notify of a transaction commit.
    • notifyOfRollback

      void notifyOfRollback(SpiTransaction transaction, Throwable cause)
      Notify of a transaction rollback.
    • notifyOfQueryOnly

      void notifyOfQueryOnly(SpiTransaction transaction)
      Notify of a query only transaction commit.
    • queryPlanConnection

      Connection queryPlanConnection() throws SQLException
      Return a connection used for query plan collection.
      Throws:
      SQLException