类 BeangleSessionContext
java.lang.Object
org.beangle.orm.hibernate.BeangleSessionContext
- 所有已实现的接口:
Serializable,org.hibernate.context.spi.CurrentSessionContext
public class BeangleSessionContext
extends Object
implements org.hibernate.context.spi.CurrentSessionContext
- 版本:
- $Id: BeangleSessionContext.java Feb 27, 2012 11:30:56 PM chaostone $
- 作者:
- chaostone
- 另请参阅:
-
构造器概要
构造器构造器说明BeangleSessionContext(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) Create a new SpringSessionContext for the given Hibernate SessionFactory. -
方法概要
修饰符和类型方法说明org.hibernate.SessionRetrieve the Spring-managed Session for the current thread, if any.
-
构造器详细资料
-
BeangleSessionContext
public BeangleSessionContext(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) Create a new SpringSessionContext for the given Hibernate SessionFactory.- 参数:
sessionFactory- the SessionFactory to provide current Sessions for
-
-
方法详细资料
-
currentSession
public org.hibernate.Session currentSession() throws org.hibernate.HibernateExceptionRetrieve the Spring-managed Session for the current thread, if any.- 指定者:
currentSession在接口中org.hibernate.context.spi.CurrentSessionContext- 抛出:
org.hibernate.HibernateException
-