org.hibernate.transaction

Class CMTTransactionFactory

Implemented Interfaces:
TransactionFactory

public class CMTTransactionFactory
extends java.lang.Object
implements TransactionFactory

Factory for CMTTransaction instances.
Author:
Gavin King

Method Summary

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, Context transactionContext)
ConnectionReleaseMode
getDefaultReleaseMode()
Get the default connection release mode.
boolean
isTransactionInProgress(JDBCContext jdbcContext, Context transactionContext, Transaction transaction)
boolean
isTransactionManagerRequired()
Do we require access to the JTA TransactionManager for this strategy?

Method Details

areCallbacksLocalToHibernateTransactions

public boolean areCallbacksLocalToHibernateTransactions()
Are all transaction callbacks local to Hibernate Transactions? Or can the callbacks originate from some other source (e.g. a JTA Synchronization).
Specified by:
areCallbacksLocalToHibernateTransactions in interface TransactionFactory
Returns:
true if callbacks only ever originate from the Hibernate Transaction; false otherwise.

configure

public void configure(Properties props)
            throws HibernateException
Configure from the given properties.
Specified by:
configure in interface TransactionFactory
Parameters:
props - The configuration properties.
Throws:
HibernateException - Indicates a problem configuring this factory.

createTransaction

public Transaction createTransaction(JDBCContext jdbcContext,
                                     Context transactionContext)
            throws HibernateException

getDefaultReleaseMode

public ConnectionReleaseMode getDefaultReleaseMode()
Get the default connection release mode.
Specified by:
getDefaultReleaseMode in interface TransactionFactory
Returns:
The default release mode associated with this strategy

isTransactionInProgress

public boolean isTransactionInProgress(JDBCContext jdbcContext,
                                       Context transactionContext,
                                       Transaction transaction)

isTransactionManagerRequired

public boolean isTransactionManagerRequired()
Do we require access to the JTA TransactionManager for this strategy?
Specified by:
isTransactionManagerRequired in interface TransactionFactory
Returns:
True if this strategy requires access to the JTA TransactionManager; false otherwise.