org.hibernate.transaction
Class JTATransactionFactory
java.lang.Object
org.hibernate.transaction.JTATransactionFactory
- All Implemented Interfaces:
- TransactionFactory
- public class JTATransactionFactory
- extends Object
- implements TransactionFactory
Factory for JTATransaction.
- Author:
- Gavin King
- See Also:
JTATransaction
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JTATransactionFactory
public JTATransactionFactory()
configure
public void configure(Properties props)
throws HibernateException
- Description copied from interface:
TransactionFactory
- Configure from the given properties.
- Specified by:
configure
in interface TransactionFactory
- Parameters:
props
-
- Throws:
HibernateException
beginTransaction
public Transaction beginTransaction(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext)
throws HibernateException
- Description copied from interface:
TransactionFactory
- Begin a transaction and return the associated Transaction instance.
- Specified by:
beginTransaction
in interface TransactionFactory
- Parameters:
jdbcContext
- The jdbc context to which the transaction belongstransactionContext
- The contract regarding the context in which this transaction will operate.
- Returns:
- Transaction
- Throws:
HibernateException
getDefaultReleaseMode
public ConnectionReleaseMode getDefaultReleaseMode()
- Description copied from interface:
TransactionFactory
- Get the default connection release mode
- Specified by:
getDefaultReleaseMode
in interface TransactionFactory