| org.hibernate.transaction.TransactionFactory
All known Subclasses: org.hibernate.transaction.CMTTransactionFactory, org.hibernate.transaction.JDBCTransactionFactory, org.hibernate.transaction.JTATransactionFactory,
TransactionFactory | public interface TransactionFactory (Code) | | 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 Also: Transaction author: Anton van Straaten, Gavin King |
Inner Class :public static interface Context | |
areCallbacksLocalToHibernateTransactions | public boolean areCallbacksLocalToHibernateTransactions()(Code) | | Are all transaction callbacks local to Hibernate Transactions?
Or can the callbacks originate from some other source (e.g.
a JTA Synchronization).
true if callbacks only ever originate fromthe Hibernate Transaction; false otherwise. |
createTransaction | public Transaction createTransaction(JDBCContext jdbcContext, Context context) throws HibernateException(Code) | | Begin a transaction and return the associated Transaction instance.
Parameters: jdbcContext - The jdbc context to which the transaction belongs Parameters: context - The contract regarding the context in which this transaction will operate. Transaction throws: HibernateException - |
isTransactionInProgress | public boolean isTransactionInProgress(JDBCContext jdbcContext, Context transactionContext, Transaction transaction)(Code) | | 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.
Parameters: jdbcContext - Parameters: transactionContext - Parameters: transaction - true if an underlying transaction is know to be in effect. |
isTransactionManagerRequired | public boolean isTransactionManagerRequired()(Code) | | Do we require access to the JTA TransactionManager for
this strategy?
|
|
|