Class CDISEJtaPlatform
- java.lang.Object
-
- org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
-
- io.helidon.integrations.cdi.hibernate.CDISEJtaPlatform
-
- All Implemented Interfaces:
Serializable,org.hibernate.engine.transaction.jta.platform.internal.TransactionManagerAccess,org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform,org.hibernate.service.Service,org.hibernate.service.spi.Configurable,org.hibernate.service.spi.ServiceRegistryAwareService
@ApplicationScoped public class CDISEJtaPlatform extends org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
AnAbstractJtaPlatformthat is anApplicationScopedCDI managed bean that suppliesTransactionManagerandUserTransactioninstances that are supplied to it at construction time.- See Also:
AbstractJtaPlatform, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CDISEJtaPlatform(TransactionManager transactionManager, UserTransaction userTransaction)Creates a newCDISEJtaPlatform.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.hibernate.engine.jndi.spi.JndiServicejndiService()Throws anUnsupportedOperationExceptionwhen invoked.protected TransactionManagerlocateTransactionManager()Returns theTransactionManagerinstance supplied at construction time.protected UserTransactionlocateUserTransaction()Returns theUserTransactioninstance 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 Detail
-
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 Detail
-
jndiService
protected org.hibernate.engine.jndi.spi.JndiService jndiService()
Throws anUnsupportedOperationExceptionwhen invoked.- Overrides:
jndiServicein classorg.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform- Returns:
- (not applicable)
- Throws:
UnsupportedOperationException- when invoked
-
locateUserTransaction
protected UserTransaction locateUserTransaction()
- Specified by:
locateUserTransactionin classorg.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform- Returns:
- a non-
nullUserTransaction - See Also:
CDISEJtaPlatform(TransactionManager, UserTransaction)
-
locateTransactionManager
protected TransactionManager locateTransactionManager()
Returns theTransactionManagerinstance supplied at construction time.This method never returns
null.- Specified by:
locateTransactionManagerin classorg.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform- Returns:
- a non-
nullTransactionManager - See Also:
CDISEJtaPlatform(TransactionManager, UserTransaction)
-
-