Class JtaTransactionManager
- java.lang.Object
-
- io.ebeaninternal.server.transaction.JtaTransactionManager
-
- All Implemented Interfaces:
ExternalTransactionManager
public class JtaTransactionManager extends Object implements ExternalTransactionManager
Hook into external JTA transaction manager.
-
-
Constructor Summary
Constructors Constructor Description JtaTransactionManager()
Instantiates a new spring aware transaction scope manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
JtaTransactionManager
public JtaTransactionManager()
Instantiates a new spring aware transaction scope manager.
-
-
Method Detail
-
setTransactionManager
public void setTransactionManager(Object txnMgr)
Initialise this with the Ebean internal transaction manager.- Specified by:
setTransactionManager
in interfaceExternalTransactionManager
-
getCurrentTransaction
public Object getCurrentTransaction()
Looks for a current Spring managed transaction and wraps/returns that as a Ebean transaction.Returns null if there is no current spring transaction (lazy loading outside a spring txn etc).
- Specified by:
getCurrentTransaction
in interfaceExternalTransactionManager
-
-