站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

TransactionFactory (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.transaction
Interface TransactionFactory

All Known Implementing Classes:
JDBCTransactionFactory, JTATransactionFactory

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.

Author:
Anton van Straaten, Gavin King
See Also:
Transaction

Method Summary
 Transaction beginTransaction(SessionImplementor session)
          Begin a transaction and return the associated Transaction instance.
 void configure(Properties props)
          Configure from the given properties.
 

Method Detail

beginTransaction

public Transaction beginTransaction(SessionImplementor session)
                             throws HibernateException
Begin a transaction and return the associated Transaction instance.

Parameters:
session - the session
Returns:
Transaction
Throws:
HibernateException

configure

public void configure(Properties props)
               throws HibernateException
Configure from the given properties.

Parameters:
props -
Throws:
HibernateException