类 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

      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.HibernateException
      Retrieve the Spring-managed Session for the current thread, if any.
      指定者:
      currentSession 在接口中 org.hibernate.context.spi.CurrentSessionContext
      抛出:
      org.hibernate.HibernateException