类 LocalTransactionManagerLookup
- java.lang.Object
- org.springframework.orm.hibernate3.LocalTransactionManagerLookup
- 所有已实现的接口:
TransactionManagerLookup
@Deprecated public class LocalTransactionManagerLookup extends Object implements TransactionManagerLookup
已过时。as of Spring 4.3, in favor of Hibernate 4.x/5.xImplementation of Hibernate'sTransactionManagerLookupinterface that returns a Spring-managed JTATransactionManager, determined by LocalSessionFactoryBean's "jtaTransactionManager" property.The main advantage of this TransactionManagerLookup is that it avoids double configuration of JTA specifics. A single TransactionManager bean can be used for both JtaTransactionManager and LocalSessionFactoryBean, with no JTA setup in Hibernate configuration.
Alternatively, use Hibernate's own TransactionManagerLookup implementations: Spring's JtaTransactionManager only requires a TransactionManager for suspending and resuming transactions, so you might not need to apply such special Spring configuration at all.
构造器概要
构造器 构造器 说明 LocalTransactionManagerLookup()已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 ObjectgetTransactionIdentifier(Transaction transaction)已过时。TransactionManagergetTransactionManager(Properties props)已过时。StringgetUserTransactionName()已过时。
构造器详细资料
LocalTransactionManagerLookup
public LocalTransactionManagerLookup()
已过时。
方法详细资料
getTransactionManager
public TransactionManager getTransactionManager(Properties props)
已过时。
getUserTransactionName
public String getUserTransactionName()
已过时。
getTransactionIdentifier
public Object getTransactionIdentifier(Transaction transaction)
已过时。