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(Transaction transaction)Determine an identifier for the given transaction appropriate for use in caching/lookup usages.protected TransactionManagerlocateTransactionManager()protected UserTransactionlocateUserTransaction()voidregisterSynchronization(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 TransactionManager locateTransactionManager()
- Specified by:
locateTransactionManagerin classAbstractJtaPlatform
-
locateUserTransaction
protected 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 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:
SystemException- Indicates a problem access the underlying status
-
getTransactionIdentifier
public Object getTransactionIdentifier(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(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
-
-