|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.transaction.JDBCTransactionFactory
public final class JDBCTransactionFactory
Factory for JDBCTransaction
instances.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.hibernate.transaction.TransactionFactory |
---|
TransactionFactory.Context |
Constructor Summary | |
---|---|
JDBCTransactionFactory()
|
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 transactionContext)
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? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCTransactionFactory()
Method Detail |
---|
public ConnectionReleaseMode getDefaultReleaseMode()
getDefaultReleaseMode
in interface TransactionFactory
public Transaction createTransaction(JDBCContext jdbcContext, TransactionFactory.Context transactionContext) throws HibernateException
createTransaction
in interface TransactionFactory
jdbcContext
- The jdbc context to which the transaction belongstransactionContext
- The contract regarding the context in which this transaction will operate.
HibernateException
- Indicates a problem generating a transaction instancepublic void configure(Properties props) throws HibernateException
configure
in interface TransactionFactory
props
- The configuration properties.
HibernateException
- Indicates a problem configuring this factory.public boolean isTransactionManagerRequired()
isTransactionManagerRequired
in interface TransactionFactory
public boolean areCallbacksLocalToHibernateTransactions()
areCallbacksLocalToHibernateTransactions
in interface TransactionFactory
Transaction
; false otherwise.public boolean isTransactionInProgress(JDBCContext jdbcContext, TransactionFactory.Context transactionContext, Transaction transaction)
isTransactionInProgress
in interface TransactionFactory
jdbcContext
- The JDBC contexttransactionContext
- The transaction contexttransaction
- The Hibernate transaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |