public class CMTTransactionFactory extends Object implements TransactionFactory
CMTTransaction instances.TransactionFactory.Context| Constructor and Description |
|---|
CMTTransactionFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areCallbacksLocalToHibernateTransactions()
Are all transaction callbacks local to Hibernate Transactions?
Or can the callbacks originate from some other source (e.g.
|
void |
configure(Properties props)
Configure from the given properties.
|
Transaction |
createTransaction(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext)
Begin a transaction and return the associated Transaction instance.
|
ConnectionReleaseMode |
getDefaultReleaseMode()
Get the default connection release mode.
|
boolean |
isTransactionInProgress(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext,
Transaction transaction)
Determine whether an underlying transaction is in progress.
|
boolean |
isTransactionManagerRequired()
Do we require access to the JTA TransactionManager for
this strategy?
|
public ConnectionReleaseMode getDefaultReleaseMode()
TransactionFactorygetDefaultReleaseMode in interface TransactionFactorypublic void configure(Properties props) throws HibernateException
TransactionFactoryconfigure in interface TransactionFactoryprops - The configuration properties.HibernateException - Indicates a problem configuring this factory.public Transaction createTransaction(JDBCContext jdbcContext, TransactionFactory.Context transactionContext) throws HibernateException
TransactionFactorycreateTransaction in interface TransactionFactoryjdbcContext - The jdbc context to which the transaction belongstransactionContext - The contract regarding the context in which this transaction will operate.HibernateException - Indicates a problem generating a transaction instancepublic boolean isTransactionManagerRequired()
TransactionFactoryisTransactionManagerRequired in interface TransactionFactorypublic boolean areCallbacksLocalToHibernateTransactions()
TransactionFactoryareCallbacksLocalToHibernateTransactions in interface TransactionFactoryTransaction; false otherwise.public boolean isTransactionInProgress(JDBCContext jdbcContext, TransactionFactory.Context transactionContext, Transaction transaction)
TransactionFactoryisTransactionInProgress in interface TransactionFactoryjdbcContext - The JDBC contexttransactionContext - The transaction contexttransaction - The Hibernate transactionCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved