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
public class WebSphereLibertyJtaPlatform extends AbstractJtaPlatform
JTA platform implementation intended for use with WebSphere Liberty and OpenLiberty- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringTMF_CLASS_NAMEstatic StringUT_NAME
-
Constructor Summary
Constructors Constructor Description WebSphereLibertyJtaPlatform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRegisterSynchronization()Can we currently register aSynchronization?intgetCurrentStatus()Obtain the current transaction status using whatever means is preferred for this platformObjectgetTransactionIdentifier(jakarta.transaction.Transaction transaction)Determine an identifier for the given transaction appropriate for use in caching/lookup usages.protected jakarta.transaction.TransactionManagerlocateTransactionManager()protected jakarta.transaction.UserTransactionlocateUserTransaction()voidregisterSynchronization(jakarta.transaction.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 Detail
-
TMF_CLASS_NAME
public static final String TMF_CLASS_NAME
- See Also:
- Constant Field Values
-
UT_NAME
public static final String UT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
locateTransactionManager
protected jakarta.transaction.TransactionManager locateTransactionManager()
- Specified by:
locateTransactionManagerin classAbstractJtaPlatform
-
locateUserTransaction
protected jakarta.transaction.UserTransaction 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
public int getCurrentStatus() throws jakarta.transaction.SystemExceptionDescription 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:
jakarta.transaction.SystemException- Indicates a problem access the underlying status
-
getTransactionIdentifier
public Object getTransactionIdentifier(jakarta.transaction.Transaction transaction)
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
public void registerSynchronization(jakarta.transaction.Synchronization synchronization)
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
-
-