org.codehaus.groovy.grails.webflow.persistence
Class FlowAwareCurrentSessionContext
java.lang.Object
org.springframework.orm.hibernate3.SpringSessionContext
org.codehaus.groovy.grails.webflow.persistence.FlowAwareCurrentSessionContext
- All Implemented Interfaces:
- Serializable, org.hibernate.context.CurrentSessionContext
public class FlowAwareCurrentSessionContext
- extends SpringSessionContext
A Hibernate CurrentSessionContext that is aware of flow requests and looks up the Session from the flow
instead of the current Thread
- Since:
- 1.0
Created: Jan 18, 2008
- Author:
- Graeme Rocher
- See Also:
- Serialized Form
Constructor Summary |
FlowAwareCurrentSessionContext(org.hibernate.engine.SessionFactoryImplementor sessionFactory)
Create a new SpringSessionContext for the given Hibernate SessionFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlowAwareCurrentSessionContext
public FlowAwareCurrentSessionContext(org.hibernate.engine.SessionFactoryImplementor sessionFactory)
- Create a new SpringSessionContext for the given Hibernate SessionFactory.
- Parameters:
sessionFactory
- the SessionFactory to provide current Sessions for
currentSession
public org.hibernate.classic.Session currentSession()
throws org.hibernate.HibernateException
- Specified by:
currentSession
in interface org.hibernate.context.CurrentSessionContext
- Overrides:
currentSession
in class SpringSessionContext
- Throws:
org.hibernate.HibernateException
Copyright (c) 2005-2009 The Grails project