public class JtaTransactionManager extends Object implements ExternalTransactionManager
| Constructor and Description |
|---|
JtaTransactionManager()
Instantiates a new spring aware transaction scope manager.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getCurrentTransaction()
Looks for a current Spring managed transaction and wraps/returns that as a Ebean transaction.
|
void |
setTransactionManager(Object txnMgr)
Initialise this with the Ebean internal transaction manager.
|
public JtaTransactionManager()
public void setTransactionManager(Object txnMgr)
setTransactionManager in interface ExternalTransactionManagerpublic Object getCurrentTransaction()
Returns null if there is no current spring transaction (lazy loading outside a spring txn etc).
getCurrentTransaction in interface ExternalTransactionManagerCopyright © 2014. All Rights Reserved.