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 SummaryConstructorsConstructorDescriptionCDISEJtaPlatform(TransactionManager transactionManager, UserTransaction userTransaction) Creates a newCDISEJtaPlatform.
- 
Method SummaryModifier and TypeMethodDescriptionprotected 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.AbstractJtaPlatformcanCacheTransactionManager, 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- the- TransactionManagerto use; must not be- null
- userTransaction- the- UserTransactionto use; must not be- null
- Throws:
- NullPointerException- if either- transactionManageror- userTransactionis- null
 
 
- 
- 
Method Details- 
jndiServiceThrows anUnsupportedOperationExceptionwhen invoked.- Overrides:
- jndiServicein class- AbstractJtaPlatform
- Returns:
- (not applicable)
- Throws:
- UnsupportedOperationException- when invoked
 
- 
locateUserTransaction- Specified by:
- locateUserTransactionin class- AbstractJtaPlatform
- Returns:
- a non-nullUserTransaction
- See Also:
 
- 
locateTransactionManagerReturns theTransactionManagerinstance supplied at construction time.This method never returns null.- Specified by:
- locateTransactionManagerin class- AbstractJtaPlatform
- Returns:
- a non-nullTransactionManager
- See Also:
 
 
-