Class CDISEJtaPlatform
java.lang.Object
org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
io.helidon.integrations.cdi.hibernate.CDISEJtaPlatform
- All Implemented Interfaces:
Serializable
,TransactionManagerAccess
,JtaPlatform
,Service
,Configurable
,ServiceRegistryAwareService
An
AbstractJtaPlatform
that is an ApplicationScoped
CDI managed bean that supplies TransactionManager
and
UserTransaction
instances that are supplied to it at
construction time.- See Also:
-
Constructor Summary
ConstructorDescriptionCDISEJtaPlatform
(TransactionManager transactionManager, UserTransaction userTransaction) Creates a newCDISEJtaPlatform
. -
Method Summary
Modifier and TypeMethodDescriptionprotected JndiService
Throws anUnsupportedOperationException
when invoked.protected TransactionManager
Returns theTransactionManager
instance supplied at construction time.protected UserTransaction
Returns theUserTransaction
instance supplied at construction time.Methods inherited from class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
canCacheTransactionManager, canCacheTransactionManagerByDefault, canCacheUserTransaction, canCacheUserTransactionByDefault, canRegisterSynchronization, configure, getCurrentStatus, getSynchronizationStrategy, getTransactionIdentifier, getTransactionManager, injectServices, registerSynchronization, retrieveTransactionManager, retrieveUserTransaction, serviceRegistry
-
Constructor Details
-
CDISEJtaPlatform
@Inject public CDISEJtaPlatform(TransactionManager transactionManager, UserTransaction userTransaction) Creates a newCDISEJtaPlatform
.- Parameters:
transactionManager
- theTransactionManager
to use; must not benull
userTransaction
- theUserTransaction
to use; must not benull
- Throws:
NullPointerException
- if eithertransactionManager
oruserTransaction
isnull
-
-
Method Details
-
jndiService
Throws anUnsupportedOperationException
when invoked.- Overrides:
jndiService
in classAbstractJtaPlatform
- Returns:
- (not applicable)
- Throws:
UnsupportedOperationException
- when invoked
-
locateUserTransaction
- Specified by:
locateUserTransaction
in classAbstractJtaPlatform
- Returns:
- a non-
null
UserTransaction
- See Also:
-
locateTransactionManager
Returns theTransactionManager
instance supplied at construction time.This method never returns
null
.- Specified by:
locateTransactionManager
in classAbstractJtaPlatform
- Returns:
- a non-
null
TransactionManager
- See Also:
-