- All Known Implementing Classes:
TransactionManager
public interface SpiTransactionManager
Service provider interface for the transaction manager.
-
Method Summary
Modifier and TypeMethodDescriptionactive()Return the currently active transaction (can be null).Return the main DataSource.externalBeginTransaction(SpiTransaction transaction, TxScope txScope) Push an externally managed transaction into scope (e.g.voidCalled when an externally managed transaction has completed.voidnotifyOfCommit(SpiTransaction transaction) Notify of a transaction commit.voidnotifyOfQueryOnly(SpiTransaction transaction) Notify of a query only transaction commit.voidnotifyOfRollback(SpiTransaction transaction, Throwable cause) Notify of a transaction rollback.Return a connection used for query plan collection.Return the read only DataSource (if defined).scope()Return the scope manager for this server.
-
Method Details
-
scope
TransactionScopeManager 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
Push an externally managed transaction into scope (e.g. Spring managed transaction). -
externalRemoveTransaction
void externalRemoveTransaction()Called when an externally managed transaction has completed. -
notifyOfCommit
Notify of a transaction commit. -
notifyOfRollback
Notify of a transaction rollback. -
notifyOfQueryOnly
Notify of a query only transaction commit. -
queryPlanConnection
Return a connection used for query plan collection.- Throws:
SQLException
-