类 WebSphereLibertyJtaPlatform
- java.lang.Object
-
- org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
-
- org.hibernate.engine.transaction.jta.platform.internal.WebSphereLibertyJtaPlatform
-
- 所有已实现的接口:
Serializable,TransactionManagerAccess,JtaPlatform,Service,Configurable,ServiceRegistryAwareService
public class WebSphereLibertyJtaPlatform extends AbstractJtaPlatform
JTA platform implementation intended for use with WebSphere Liberty and OpenLiberty- 作者:
- Andrew Guibert, Nathan Rauh
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringTMF_CLASS_NAMEstatic StringUT_NAME
-
构造器概要
构造器 构造器 说明 WebSphereLibertyJtaPlatform()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanRegisterSynchronization()Can we currently register aSynchronization?intgetCurrentStatus()Obtain the current transaction status using whatever means is preferred for this platformObjectgetTransactionIdentifier(javax.transaction.Transaction transaction)Determine an identifier for the given transaction appropriate for use in caching/lookup usages.protected javax.transaction.TransactionManagerlocateTransactionManager()protected javax.transaction.UserTransactionlocateUserTransaction()voidregisterSynchronization(javax.transaction.Synchronization synchronization)Register a JTASynchronizationin the means defined by the platform.-
从类继承的方法 org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
canCacheTransactionManager, canCacheTransactionManagerByDefault, canCacheUserTransaction, canCacheUserTransactionByDefault, configure, getSynchronizationStrategy, getTransactionManager, injectServices, jndiService, retrieveTransactionManager, retrieveUserTransaction, serviceRegistry
-
-
-
-
方法详细资料
-
locateTransactionManager
protected javax.transaction.TransactionManager locateTransactionManager()
-
locateUserTransaction
protected javax.transaction.UserTransaction locateUserTransaction()
- 指定者:
locateUserTransaction在类中AbstractJtaPlatform
-
canRegisterSynchronization
public boolean canRegisterSynchronization()
从接口复制的说明:JtaPlatformCan we currently register aSynchronization?- 指定者:
canRegisterSynchronization在接口中JtaPlatform- 覆盖:
canRegisterSynchronization在类中AbstractJtaPlatform- 返回:
- True if registering a
Synchronizationis currently allowed; false otherwise.
-
getCurrentStatus
public int getCurrentStatus() throws javax.transaction.SystemException从接口复制的说明:JtaPlatformObtain the current transaction status using whatever means is preferred for this platform- 指定者:
getCurrentStatus在接口中JtaPlatform- 覆盖:
getCurrentStatus在类中AbstractJtaPlatform- 返回:
- The current status.
- 抛出:
javax.transaction.SystemException- Indicates a problem access the underlying status
-
getTransactionIdentifier
public Object getTransactionIdentifier(javax.transaction.Transaction transaction)
从接口复制的说明: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.- 指定者:
getTransactionIdentifier在接口中JtaPlatform- 覆盖:
getTransactionIdentifier在类中AbstractJtaPlatform- 参数:
transaction- The transaction to be identified.- 返回:
- An appropriate identifier
-
registerSynchronization
public void registerSynchronization(javax.transaction.Synchronization synchronization)
从接口复制的说明:JtaPlatformRegister a JTASynchronizationin the means defined by the platform.- 指定者:
registerSynchronization在接口中JtaPlatform- 覆盖:
registerSynchronization在类中AbstractJtaPlatform- 参数:
synchronization- The synchronization to register
-
-