public class HibernateTransactionContext extends Object
| 构造器和说明 |
|---|
HibernateTransactionContext()
使用默认的 SessionFactory 构建。
|
HibernateTransactionContext(String sessionFactoryName)
使用指定的 SessionFactory 名称构建。
|
public HibernateTransactionContext()
public HibernateTransactionContext(String sessionFactoryName)
sessionFactoryName - SessionFactory 名称public org.hibernate.Session getSession()
throws SQLException
SQLException - 建立 Session 失败public void begin()
throws SQLException
SQLException - 启动失败public void commit()
throws SQLException
SQLException - 提交失败public void rollback()
throws SQLException
SQLException - 撤销失败public void release()
Copyright © 2008–2014 Matrix. All rights reserved.