接口 JtaPlatform
-
- 所有超级接口:
Serializable,Service
- 所有已知实现类:
AbstractJtaPlatform,AtomikosJtaPlatform,BitronixJtaPlatform,BorlandEnterpriseServerJtaPlatform,JBossAppServerJtaPlatform,JBossStandAloneJtaPlatform,JOnASJtaPlatform,JOTMJtaPlatform,JRun4JtaPlatform,NoJtaPlatform,OC4JJtaPlatform,OrionJtaPlatform,ResinJtaPlatform,SapNetWeaverJtaPlatform,SunOneJtaPlatform,WeblogicJtaPlatform,WebSphereExtendedJtaPlatform,WebSphereJtaPlatform,WebSphereLibertyJtaPlatform,WildFlyStandAloneJtaPlatform
public interface JtaPlatform extends Service
Defines how we interact with various JTA services on the given platform/environment.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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
-
-
-
方法详细资料
-
retrieveTransactionManager
javax.transaction.TransactionManager retrieveTransactionManager()
Locate theTransactionManager- 返回:
- The
TransactionManager
-
retrieveUserTransaction
javax.transaction.UserTransaction retrieveUserTransaction()
Locate theUserTransaction- 返回:
- The
UserTransaction
-
getTransactionIdentifier
Object getTransactionIdentifier(javax.transaction.Transaction transaction)
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.- 参数:
transaction- The transaction to be identified.- 返回:
- An appropriate identifier
-
canRegisterSynchronization
boolean canRegisterSynchronization()
Can we currently register aSynchronization?- 返回:
- True if registering a
Synchronizationis currently allowed; false otherwise.
-
registerSynchronization
void registerSynchronization(javax.transaction.Synchronization synchronization)
Register a JTASynchronizationin the means defined by the platform.- 参数:
synchronization- The synchronization to register
-
getCurrentStatus
int getCurrentStatus() throws javax.transaction.SystemExceptionObtain the current transaction status using whatever means is preferred for this platform- 返回:
- The current status.
- 抛出:
javax.transaction.SystemException- Indicates a problem access the underlying status
-
-