A simple TransactionManager lookuper that delegates all transaction management operations to the DataSourceTransactionManager
for each DataSource looked up with play.api.db.DBApi.database(name)
.
A simple TransactionManager lookuper that delegates all transaction management operations to the DataSourceTransactionManager
for each DataSource looked up with play.api.db.DBApi.database(name)
.
A simple Transactional function that uses jdbc Connection(obtained from DBApi and binding it to transaction execution context) as a transactional resource.
A simple Transactional function that uses jdbc Connection(obtained from DBApi and binding it to transaction execution context) as a transactional resource.
A standard Play
module to provide basic setup for DataSourceTransactionManager
Determine the specific transaction manager to use for the given transaction.
Created by sauntor on 17-3-21.
Created by sauntor on 17-3-21.
Base class for transactional functions, such as the SimpleDBApiTransactional.
Base class for transactional functions, such as the SimpleDBApiTransactional.
This enables the underlying Spring transaction infrastructure to be used easily to implement an aspect for any aspect system.
Subclasses are responsible for calling methods in this class in the correct order.
If no transaction name has been specified in the TransactionAttribute, the exposed name will be the
fully-qualified class name + "." + method name
(by default).
Uses the Strategy design pattern. A PlatformTransactionManager implementation will perform the actual transaction management, and a TransactionManagerLookup is used for determining the actual transaction manager.
1.1
#setTransactionManager
Created by sauntor on 17-3-22.