spring-framework / org.springframework.orm.jpa / JpaDialect / cleanupTransaction

cleanupTransaction

abstract fun cleanupTransaction(@Nullable transactionData: Any): Unit

Clean up the transaction via the given transaction data. Called by JpaTransactionManager and EntityManagerFactoryUtils on transaction cleanup.

An implementation can, for example, reset read-only flag and isolation level of the underlying JDBC Connection. Furthermore, an exposed data access use case can be reset here.

Parameters

transactionData - arbitrary object that holds transaction data, if any (as returned by beginTransaction or prepareTransaction)

See Also
#beginTransactionorg.springframework.jdbc.datasource.DataSourceUtils#resetConnectionAfterTransaction