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

TransactionFactory

public interface TransactionFactory
An abstract factory for Transaction instances. Concrete implementations are specified by hibernate.transaction.factory_class.

Implementors must be threadsafe and should declare a public default constructor.
see
Transaction
author
Anton van Straaten, Gavin King

Fields Summary
Constructors Summary
Methods Summary
public booleanareCallbacksLocalToHibernateTransactions()
Are all transaction callbacks local to Hibernate Transactions? Or can the callbacks originate from some other source (e.g. a JTA Synchronization).

return
true if callbacks only ever originate from the Hibernate {@link Transaction}; false otherwise.

public voidconfigure(java.util.Properties props)
Configure from the given properties.

param
props
throws
HibernateException

public org.hibernate.TransactioncreateTransaction(org.hibernate.jdbc.JDBCContext jdbcContext, org.hibernate.transaction.TransactionFactory$Context context)
Begin a transaction and return the associated Transaction instance.

param
jdbcContext The jdbc context to which the transaction belongs
param
context The contract regarding the context in which this transaction will operate.
return
Transaction
throws
HibernateException

public org.hibernate.ConnectionReleaseModegetDefaultReleaseMode()
Get the default connection release mode

public booleanisTransactionInProgress(org.hibernate.jdbc.JDBCContext jdbcContext, org.hibernate.transaction.TransactionFactory$Context transactionContext, org.hibernate.Transaction transaction)
Determine whether an underlying transaction is in progress.

Mainly this is used in determining whether to register a synchronization as well as whether or not to circumvent auto flushing outside transactions.

param
jdbcContext
param
transactionContext
param
transaction
return
true if an underlying transaction is know to be in effect.

public booleanisTransactionManagerRequired()
Do we require access to the JTA TransactionManager for this strategy?