FileDocCategorySizeDatePackage
JDBCTransactionFactory.javaAPI DocHibernate 3.2.51590Sun Jun 11 12:00:20 BST 2006org.hibernate.transaction

JDBCTransactionFactory

public final class JDBCTransactionFactory extends Object implements TransactionFactory
Factory for JDBCTransaction.
see
JDBCTransaction
author
Anton van Straaten

Fields Summary
Constructors Summary
Methods Summary
public booleanareCallbacksLocalToHibernateTransactions()

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

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

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

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

//		try {
//			// for JDBC-based transactions, we only want to return true
//			// here if we (this transaction) are managing the transaction
//			return transaction != null &&
//			       transaction.isActive() &&
//			       !jdbcContext.getConnectionManager().isAutoCommit();
//		}
//		catch ( SQLException e ) {
//			// assume we are in auto-commit!
//			return false;
//		}
		return transaction != null && transaction.isActive();
	
public booleanisTransactionManagerRequired()

		return false;