|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.
Transaction| Nested Class Summary | |
static interface |
TransactionFactory.Context
|
| 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,
TransactionFactory.Context context)
Begin a transaction and return the associated Transaction instance. |
ConnectionReleaseMode |
getDefaultReleaseMode()
Get the default connection release mode |
boolean |
isTransactionInProgress(JDBCContext jdbcContext,
TransactionFactory.Context transactionContext,
Transaction transaction)
Determine whether an underlying transaction is in progress. |
boolean |
isTransactionManagerRequired()
Do we require access to the JTA TransactionManager for this strategy? |
| Method Detail |
public Transaction createTransaction(JDBCContext jdbcContext, TransactionFactory.Context context) throws HibernateException
jdbcContext - The jdbc context to which the transaction belongscontext - The contract regarding the context in which this transaction will operate.
HibernateExceptionpublic void configure(Properties props) throws HibernateException
props -
HibernateExceptionpublic ConnectionReleaseMode getDefaultReleaseMode()
public boolean isTransactionManagerRequired()
public boolean areCallbacksLocalToHibernateTransactions()
Transaction; false otherwise.public boolean isTransactionInProgress(JDBCContext jdbcContext, TransactionFactory.Context transactionContext, Transaction transaction)
jdbcContext - transactionContext - transaction -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||