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
AnAbstractJtaPlatform
that is anApplicationScoped
CDI managed bean that suppliesTransactionManager
andUserTransaction
instances that are supplied to it at construction time.- See Also:
AbstractJtaPlatform
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CDISEJtaPlatform(javax.transaction.TransactionManager transactionManager, javax.transaction.UserTransaction userTransaction)
Creates a newCDISEJtaPlatform
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.hibernate.engine.jndi.spi.JndiService
jndiService()
Throws anUnsupportedOperationException
when invoked.protected javax.transaction.TransactionManager
locateTransactionManager()
Returns theTransactionManager
instance supplied at construction time.protected javax.transaction.UserTransaction
locateUserTransaction()
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 Detail
-
CDISEJtaPlatform
@Inject public CDISEJtaPlatform(javax.transaction.TransactionManager transactionManager, javax.transaction.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 Detail
-
jndiService
protected org.hibernate.engine.jndi.spi.JndiService jndiService()
Throws anUnsupportedOperationException
when invoked.- Overrides:
jndiService
in classorg.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
- Returns:
- (not applicable)
- Throws:
UnsupportedOperationException
- when invoked
-
locateUserTransaction
protected javax.transaction.UserTransaction locateUserTransaction()
- Specified by:
locateUserTransaction
in classorg.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
- Returns:
- a non-
null
UserTransaction
- See Also:
CDISEJtaPlatform(TransactionManager, UserTransaction)
-
locateTransactionManager
protected javax.transaction.TransactionManager locateTransactionManager()
Returns theTransactionManager
instance supplied at construction time.This method never returns
null
.- Specified by:
locateTransactionManager
in classorg.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
- Returns:
- a non-
null
TransactionManager
- See Also:
CDISEJtaPlatform(TransactionManager, UserTransaction)
-
-