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
ConstructorsConstructorDescriptionCDISEJtaPlatform(TransactionManager transactionManager, UserTransaction userTransaction) Creates a newCDISEJtaPlatform. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected JndiServiceThrows anUnsupportedOperationExceptionwhen invoked.protected TransactionManagerReturns theTransactionManagerinstance supplied at construction time.protected UserTransactionReturns theUserTransactioninstance supplied at construction time.Methods inherited from class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
canCacheTransactionManager, canCacheTransactionManagerByDefault, 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- theTransactionManagerto use; must not benulluserTransaction- theUserTransactionto use; must not benull- Throws:
NullPointerException- if eithertransactionManageroruserTransactionisnull
-
-
Method Details
-
canCacheUserTransaction
protected boolean canCacheUserTransaction()- Overrides:
canCacheUserTransactionin classAbstractJtaPlatform
-
jndiService
Throws anUnsupportedOperationExceptionwhen invoked.- Overrides:
jndiServicein classAbstractJtaPlatform- Returns:
- (not applicable)
- Throws:
UnsupportedOperationException- when invoked
-
locateUserTransaction
- Specified by:
locateUserTransactionin classAbstractJtaPlatform- Returns:
- a non-
nullUserTransaction - See Also:
-
locateTransactionManager
Returns theTransactionManagerinstance supplied at construction time.This method never returns
null.- Specified by:
locateTransactionManagerin classAbstractJtaPlatform- Returns:
- a non-
nullTransactionManager - See Also:
-