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
A
JTATransactionController
whose acquireTransactionManager()
method uses CDI, not JNDI, to
return a TransactionManager
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected TransactionManager
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 Details
-
TransactionController
public TransactionController()Creates a newCDISEPlatform.TransactionController
.
-
-
Method Details
-
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:
-