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 String
TMF_CLASS_NAME
static String
UT_NAME
-
Constructor Summary
Constructors Constructor Description WebSphereLibertyJtaPlatform()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRegisterSynchronization()
Can we currently register aSynchronization
?int
getCurrentStatus()
Obtain the current transaction status using whatever means is preferred for this platformObject
getTransactionIdentifier(Transaction transaction)
Determine an identifier for the given transaction appropriate for use in caching/lookup usages.protected TransactionManager
locateTransactionManager()
protected UserTransaction
locateUserTransaction()
void
registerSynchronization(Synchronization synchronization)
Register a JTASynchronization
in 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:
locateTransactionManager
in classAbstractJtaPlatform
-
locateUserTransaction
protected UserTransaction locateUserTransaction()
- Specified by:
locateUserTransaction
in classAbstractJtaPlatform
-
canRegisterSynchronization
public boolean canRegisterSynchronization()
Description copied from interface:JtaPlatform
Can we currently register aSynchronization
?- Specified by:
canRegisterSynchronization
in interfaceJtaPlatform
- Overrides:
canRegisterSynchronization
in classAbstractJtaPlatform
- Returns:
- True if registering a
Synchronization
is currently allowed; false otherwise.
-
getCurrentStatus
public int getCurrentStatus() throws SystemException
Description copied from interface:JtaPlatform
Obtain the current transaction status using whatever means is preferred for this platform- Specified by:
getCurrentStatus
in interfaceJtaPlatform
- Overrides:
getCurrentStatus
in classAbstractJtaPlatform
- Returns:
- The current status.
- Throws:
SystemException
- Indicates a problem access the underlying status
-
getTransactionIdentifier
public Object getTransactionIdentifier(Transaction transaction)
Description copied from interface:JtaPlatform
Determine 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:
getTransactionIdentifier
in interfaceJtaPlatform
- Overrides:
getTransactionIdentifier
in classAbstractJtaPlatform
- Parameters:
transaction
- The transaction to be identified.- Returns:
- An appropriate identifier
-
registerSynchronization
public void registerSynchronization(Synchronization synchronization)
Description copied from interface:JtaPlatform
Register a JTASynchronization
in the means defined by the platform.- Specified by:
registerSynchronization
in interfaceJtaPlatform
- Overrides:
registerSynchronization
in classAbstractJtaPlatform
- Parameters:
synchronization
- The synchronization to register
-
-