Class CDISEPlatform.TransactionController
- java.lang.Object
-
- org.eclipse.persistence.transaction.AbstractTransactionController
-
- org.eclipse.persistence.transaction.JTATransactionController
-
- io.helidon.integrations.cdi.eclipselink.CDISEPlatform.TransactionController
-
- All Implemented Interfaces:
ExternalTransactionController
- Enclosing class:
- CDISEPlatform
public static class CDISEPlatform.TransactionController extends JTATransactionController
AJTATransactionController
whoseacquireTransactionManager()
method uses CDI, not JNDI, to return aTransactionManager
instance.
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.transaction.JTATransactionController
defaultTransactionManager, transactionManager
-
Fields inherited from class org.eclipse.persistence.transaction.AbstractTransactionController
activeUnitOfWorkThreadLocal, currentlyProcessedListeners, exceptionHandler, listenerFactory, numSessionsRequiringSequencingCallback, sequencingListeners, session, unitsOfWork
-
-
Constructor Summary
Constructors Constructor Description TransactionController()
Creates a newCDISEPlatform.TransactionController
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TransactionManager
acquireTransactionManager()
Returns a non-null
TransactionManager
.-
Methods inherited from class org.eclipse.persistence.transaction.JTATransactionController
beginTransaction_impl, canBeginTransaction_impl, canCommitTransaction_impl, canIssueSQLToDatabase_impl, canMergeUnitOfWork_impl, canRollbackTransaction_impl, commitTransaction_impl, getDefaultTransactionManager, getIntStatus, getTransaction_impl, getTransactionKey_impl, getTransactionManager, getTransactionStatus_impl, isRolledBack_impl, markTransactionForRollback_impl, registerSynchronization_impl, rollbackTransaction_impl, setDefaultTransactionManager, setTransactionManager, statusToString_impl
-
Methods inherited from class org.eclipse.persistence.transaction.AbstractTransactionController
addUnitOfWork, beginTransaction, bindToCurrentTransaction, clearSequencingListeners, commitTransaction, getActiveSequencingCallback, getActiveUnitOfWork, getExceptionHandler, getListenerFactory, getSession, getTransaction, getTransactionKey, getTransactionStatus, getUnitsOfWork, hasActiveUnitOfWork, initializeSequencingListeners, isSequencingCallbackRequired, jndiLookup, logTxStateTrace, logTxTrace, lookupActiveUnitOfWork, lookupActiveUnitOfWork, markTransactionForRollback, noTransactionOrRolledBackOrCommited, numSessionsRequiringSequencingCallback, registerSynchronizationListener, removeSequencingListener, removeUnitOfWork, rollbackTransaction, setExceptionHandler, setListenerFactory, setSession, setUnitsOfWork
-
-
-
-
Constructor Detail
-
TransactionController
public TransactionController()
Creates a newCDISEPlatform.TransactionController
.
-
-
Method Detail
-
acquireTransactionManager
protected TransactionManager acquireTransactionManager()
- Overrides:
acquireTransactionManager
in classJTATransactionController
- Returns:
- a non-
null
TransactionManager
- Throws:
NullPointerException
- if in exceedingly rare specification-violating cases the return value ofCDI.current()
isnull
, or if theProvider.get()
method returnsnull
RuntimeException
- if theProvider.get()
method encounters an error providing aTransactionManager
- See Also:
JTATransactionController.acquireTransactionManager()
-
-