|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.orm.hibernate3.SpringSessionContext
org.codehaus.groovy.grails.webflow.persistence.FlowAwareCurrentSessionContext
public class FlowAwareCurrentSessionContext
A Hibernate CurrentSessionContext that is aware of flow requests and looks up the Session from the flow instead of the current Thread.
| Constructor Summary | |
|---|---|
FlowAwareCurrentSessionContext(org.hibernate.engine.SessionFactoryImplementor sessionFactory)
Create a new SpringSessionContext for the given Hibernate SessionFactory. |
|
| Method Summary | |
|---|---|
org.hibernate.classic.Session |
currentSession()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowAwareCurrentSessionContext(org.hibernate.engine.SessionFactoryImplementor sessionFactory)
sessionFactory - the SessionFactory to provide current Sessions for| Method Detail |
|---|
public org.hibernate.classic.Session currentSession()
throws org.hibernate.HibernateException
currentSession in interface org.hibernate.context.CurrentSessionContextcurrentSession in class org.springframework.orm.hibernate3.SpringSessionContextorg.hibernate.HibernateException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||