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
- Author:
- Andrew Guibert, Nathan Rauh
- 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 platformgetTransactionIdentifier(Transaction transaction) Determine an identifier for the given transaction appropriate for use in caching/lookup usages.protected 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, 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
-
getTransactionIdentifier
Description copied from interface:JtaPlatformDetermine an identifier for the given transaction appropriate for use in caching/lookup usages.Generally speaking the transaction itself will be returned here. This method was added specifically for use in WebSphere and other unfriendly Java EE containers.
- Specified by:
getTransactionIdentifierin interfaceJtaPlatform- Overrides:
getTransactionIdentifierin classAbstractJtaPlatform- Parameters:
transaction- The transaction to be identified.- Returns:
- An appropriate identifier
-
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
-