类 NoJtaPlatform
- java.lang.Object
-
- org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform
-
- 所有已实现的接口:
Serializable,JtaPlatform,Service
public class NoJtaPlatform extends Object implements JtaPlatform
The non-configured form of JTA platform. This is what is used if none was set up.- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static NoJtaPlatformINSTANCE
-
构造器概要
构造器 构造器 说明 NoJtaPlatform()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.voidregisterSynchronization(javax.transaction.Synchronization synchronization)Register a JTASynchronizationin the means defined by the platform.javax.transaction.TransactionManagerretrieveTransactionManager()Locate theTransactionManagerjavax.transaction.UserTransactionretrieveUserTransaction()Locate theUserTransaction
-
-
-
字段详细资料
-
INSTANCE
public static final NoJtaPlatform INSTANCE
-
-
方法详细资料
-
retrieveTransactionManager
public javax.transaction.TransactionManager retrieveTransactionManager()
从接口复制的说明:JtaPlatformLocate theTransactionManager- 指定者:
retrieveTransactionManager在接口中JtaPlatform- 返回:
- The
TransactionManager
-
retrieveUserTransaction
public javax.transaction.UserTransaction retrieveUserTransaction()
从接口复制的说明:JtaPlatformLocate theUserTransaction- 指定者:
retrieveUserTransaction在接口中JtaPlatform- 返回:
- The
UserTransaction
-
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- 参数:
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- 参数:
synchronization- The synchronization to register
-
canRegisterSynchronization
public boolean canRegisterSynchronization()
从接口复制的说明:JtaPlatformCan we currently register aSynchronization?- 指定者:
canRegisterSynchronization在接口中JtaPlatform- 返回:
- 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- 返回:
- The current status.
- 抛出:
javax.transaction.SystemException- Indicates a problem access the underlying status
-
-