FileDocCategorySizeDatePackage
CMTTransactionFactory.javaAPI DocHibernate 3.2.51518Fri Mar 10 11:14:22 GMT 2006org.hibernate.transaction

CMTTransactionFactory

public class CMTTransactionFactory extends Object implements TransactionFactory
Factory for CMTTransaction.
see
CMTTransaction
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public booleanareCallbacksLocalToHibernateTransactions()

		return false;
	
public voidconfigure(java.util.Properties props)

public org.hibernate.TransactioncreateTransaction(org.hibernate.jdbc.JDBCContext jdbcContext, Context transactionContext)

		return new CMTTransaction(jdbcContext, transactionContext);
	
public org.hibernate.ConnectionReleaseModegetDefaultReleaseMode()

		return ConnectionReleaseMode.AFTER_STATEMENT;
	
public booleanisTransactionInProgress(org.hibernate.jdbc.JDBCContext jdbcContext, Context transactionContext, org.hibernate.Transaction transaction)

		try {
			return JTAHelper.isTransactionInProgress(
					transactionContext.getFactory().getTransactionManager().getTransaction()
			);
		}
		catch( SystemException se ) {
			throw new TransactionException( "Unable to check transaction status", se );
		}

	
public booleanisTransactionManagerRequired()

		return true;