Class SpringTransactionFactory
- java.lang.Object
- org.springframework.orm.hibernate3.SpringTransactionFactory
- All Implemented Interfaces:
TransactionFactory
@Deprecated public class SpringTransactionFactory extends Object implements TransactionFactory
Deprecated.as of Spring 4.3, in favor of Hibernate 4.x/5.xSpring-aware implementation of the Hibernate TransactionFactory interface, aware of Spring-synchronized transactions (in particular Spring-managed JTA transactions) and asking for default release mode ON_CLOSE. Otherwise identical to Hibernate's defaultJDBCTransactionFactory
implementation.- Since:
- 2.5.4
- Author:
- Juergen Hoeller
- See Also:
TransactionSynchronizationManager
,JDBCTransactionFactory
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.transaction.TransactionFactory
TransactionFactory.Context
Constructor Summary
Constructors Constructor Description SpringTransactionFactory()
Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
areCallbacksLocalToHibernateTransactions()
Deprecated.void
configure(Properties props)
Deprecated.Transaction
createTransaction(JDBCContext jdbcContext, TransactionFactory.Context transactionContext)
Deprecated.ConnectionReleaseMode
getDefaultReleaseMode()
Deprecated.Sets connection release mode "on_close" as default.boolean
isTransactionInProgress(JDBCContext jdbcContext, TransactionFactory.Context transactionContext, Transaction transaction)
Deprecated.boolean
isTransactionManagerRequired()
Deprecated.
Constructor Detail
SpringTransactionFactory
public SpringTransactionFactory()
Deprecated.
Method Detail
getDefaultReleaseMode
public ConnectionReleaseMode getDefaultReleaseMode()
Deprecated.Sets connection release mode "on_close" as default.This was the case for Hibernate 3.0; Hibernate 3.1 changed it to "auto" (i.e. "after_statement" or "after_transaction"). However, for Spring's resource management (in particular for HibernateTransactionManager), "on_close" is the better default.
- Specified by:
getDefaultReleaseMode
in interfaceTransactionFactory
createTransaction
public Transaction createTransaction(JDBCContext jdbcContext, TransactionFactory.Context transactionContext)
Deprecated.- Specified by:
createTransaction
in interfaceTransactionFactory
configure
public void configure(Properties props)
Deprecated.- Specified by:
configure
in interfaceTransactionFactory
isTransactionManagerRequired
public boolean isTransactionManagerRequired()
Deprecated.- Specified by:
isTransactionManagerRequired
in interfaceTransactionFactory
areCallbacksLocalToHibernateTransactions
public boolean areCallbacksLocalToHibernateTransactions()
Deprecated.- Specified by:
areCallbacksLocalToHibernateTransactions
in interfaceTransactionFactory
isTransactionInProgress
public boolean isTransactionInProgress(JDBCContext jdbcContext, TransactionFactory.Context transactionContext, Transaction transaction)
Deprecated.- Specified by:
isTransactionInProgress
in interfaceTransactionFactory