org.hibernate.transaction
Class JDBCTransactionFactory

java.lang.Object
  extended byorg.hibernate.transaction.JDBCTransactionFactory
All Implemented Interfaces:
TransactionFactory

public final class JDBCTransactionFactory
extends Object
implements TransactionFactory

Factory for JDBCTransaction.

Author:
Anton van Straaten
See Also:
JDBCTransaction

Nested Class Summary
 
Nested classes inherited from class org.hibernate.transaction.TransactionFactory
TransactionFactory.Context
 
Constructor Summary
JDBCTransactionFactory()
           
 
Method Summary
 Transaction beginTransaction(JDBCContext jdbcContext, TransactionFactory.Context transactionContext)
          Begin a transaction and return the associated Transaction instance.
 void configure(Properties props)
          Configure from the given properties.
 ConnectionReleaseMode getDefaultReleaseMode()
          Get the default connection release mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCTransactionFactory

public JDBCTransactionFactory()
Method Detail

getDefaultReleaseMode

public ConnectionReleaseMode getDefaultReleaseMode()
Description copied from interface: TransactionFactory
Get the default connection release mode

Specified by:
getDefaultReleaseMode in interface TransactionFactory

beginTransaction

public Transaction beginTransaction(JDBCContext jdbcContext,
                                    TransactionFactory.Context transactionContext)
                             throws HibernateException
Description copied from interface: TransactionFactory
Begin a transaction and return the associated Transaction instance.

Specified by:
beginTransaction in interface TransactionFactory
Parameters:
jdbcContext - The jdbc context to which the transaction belongs
transactionContext - The contract regarding the context in which this transaction will operate.
Returns:
Transaction
Throws:
HibernateException

configure

public void configure(Properties props)
               throws HibernateException
Description copied from interface: TransactionFactory
Configure from the given properties.

Specified by:
configure in interface TransactionFactory
Parameters:
props -
Throws:
HibernateException