Class WebSphereLibertyJtaPlatform
java.lang.Object
org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
org.hibernate.engine.transaction.jta.platform.internal.WebSphereLibertyJtaPlatform
- All Implemented Interfaces:
Serializable,TransactionManagerAccess,JtaPlatform,Service,Configurable,ServiceRegistryAwareService
JTA platform implementation intended for use with WebSphere Liberty and OpenLiberty
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan we currently register aSynchronization?intObtain the current transaction status using whatever means is preferred for this platformprotected TransactionManagerprotected UserTransactionvoidregisterSynchronization(Synchronization synchronization) Register a JTASynchronizationin the means defined by the platform.Methods inherited from class org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
canCacheTransactionManager, canCacheTransactionManagerByDefault, canCacheUserTransaction, canCacheUserTransactionByDefault, configure, getSynchronizationStrategy, getTransactionIdentifier, getTransactionManager, injectServices, jndiService, retrieveTransactionManager, retrieveUserTransaction, serviceRegistry
-
Field Details
-
TMF_CLASS_NAME
- See Also:
-
UT_NAME
- See Also:
-
-
Constructor Details
-
WebSphereLibertyJtaPlatform
public WebSphereLibertyJtaPlatform()
-
-
Method Details
-
locateTransactionManager
- Specified by:
locateTransactionManagerin classAbstractJtaPlatform
-
locateUserTransaction
- Specified by:
locateUserTransactionin classAbstractJtaPlatform
-
canRegisterSynchronization
public boolean canRegisterSynchronization()Description copied from interface:JtaPlatformCan we currently register aSynchronization?- Specified by:
canRegisterSynchronizationin interfaceJtaPlatform- Overrides:
canRegisterSynchronizationin classAbstractJtaPlatform- Returns:
- True if registering a
Synchronizationis currently allowed; false otherwise.
-
getCurrentStatus
Description copied from interface:JtaPlatformObtain the current transaction status using whatever means is preferred for this platform- Specified by:
getCurrentStatusin interfaceJtaPlatform- Overrides:
getCurrentStatusin classAbstractJtaPlatform- Returns:
- The current status.
- Throws:
SystemException- Indicates a problem access the underlying status
-
registerSynchronization
Description copied from interface:JtaPlatformRegister a JTASynchronizationin the means defined by the platform.- Specified by:
registerSynchronizationin interfaceJtaPlatform- Overrides:
registerSynchronizationin classAbstractJtaPlatform- Parameters:
synchronization- The synchronization to register
-