类 AbstractJtaPlatform
- java.lang.Object
-
- org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform
-
- 所有已实现的接口:
Serializable,TransactionManagerAccess,JtaPlatform,Service,Configurable,ServiceRegistryAwareService
- 直接已知子类:
AtomikosJtaPlatform,BitronixJtaPlatform,BorlandEnterpriseServerJtaPlatform,JBossAppServerJtaPlatform,JBossStandAloneJtaPlatform,JOnASJtaPlatform,JOTMJtaPlatform,JRun4JtaPlatform,OC4JJtaPlatform,OrionJtaPlatform,ResinJtaPlatform,SapNetWeaverJtaPlatform,SunOneJtaPlatform,WeblogicJtaPlatform,WebSphereExtendedJtaPlatform,WebSphereJtaPlatform,WebSphereLibertyJtaPlatform,WildFlyStandAloneJtaPlatform
public abstract class AbstractJtaPlatform extends Object implements JtaPlatform, Configurable, ServiceRegistryAwareService, TransactionManagerAccess
- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 AbstractJtaPlatform()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected booleancanCacheTransactionManager()protected booleancanCacheTransactionManagerByDefault()protected booleancanCacheUserTransaction()protected booleancanCacheUserTransactionByDefault()booleancanRegisterSynchronization()Can we currently register aSynchronization?voidconfigure(Map configValues)Configure the service.intgetCurrentStatus()Obtain the current transaction status using whatever means is preferred for this platformprotected JtaSynchronizationStrategygetSynchronizationStrategy()ObjectgetTransactionIdentifier(javax.transaction.Transaction transaction)Determine an identifier for the given transaction appropriate for use in caching/lookup usages.javax.transaction.TransactionManagergetTransactionManager()Obtain the transaction managervoidinjectServices(ServiceRegistryImplementor serviceRegistry)Callback to inject the registry.protected JndiServicejndiService()protected abstract javax.transaction.TransactionManagerlocateTransactionManager()protected abstract javax.transaction.UserTransactionlocateUserTransaction()voidregisterSynchronization(javax.transaction.Synchronization synchronization)Register a JTASynchronizationin the means defined by the platform.javax.transaction.TransactionManagerretrieveTransactionManager()Locate theTransactionManagerjavax.transaction.UserTransactionretrieveUserTransaction()Locate theUserTransactionprotected ServiceRegistryserviceRegistry()
-
-
-
方法详细资料
-
injectServices
public void injectServices(ServiceRegistryImplementor serviceRegistry)
从接口复制的说明:ServiceRegistryAwareServiceCallback to inject the registry.- 指定者:
injectServices在接口中ServiceRegistryAwareService- 参数:
serviceRegistry- The registry
-
serviceRegistry
protected ServiceRegistry serviceRegistry()
-
jndiService
protected JndiService jndiService()
-
locateTransactionManager
protected abstract javax.transaction.TransactionManager locateTransactionManager()
-
locateUserTransaction
protected abstract javax.transaction.UserTransaction locateUserTransaction()
-
configure
public void configure(Map configValues)
从接口复制的说明:ConfigurableConfigure the service.- 指定者:
configure在接口中Configurable- 参数:
configValues- The configuration properties.
-
canCacheTransactionManagerByDefault
protected boolean canCacheTransactionManagerByDefault()
-
canCacheUserTransactionByDefault
protected boolean canCacheUserTransactionByDefault()
-
canCacheTransactionManager
protected boolean canCacheTransactionManager()
-
canCacheUserTransaction
protected boolean canCacheUserTransaction()
-
retrieveTransactionManager
public javax.transaction.TransactionManager retrieveTransactionManager()
从接口复制的说明:JtaPlatformLocate theTransactionManager- 指定者:
retrieveTransactionManager在接口中JtaPlatform- 返回:
- The
TransactionManager
-
getTransactionManager
public javax.transaction.TransactionManager getTransactionManager()
从接口复制的说明:TransactionManagerAccessObtain the transaction manager- 指定者:
getTransactionManager在接口中TransactionManagerAccess- 返回:
- The transaction manager.
-
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
-
getSynchronizationStrategy
protected JtaSynchronizationStrategy getSynchronizationStrategy()
-
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
-
-