com.atlassian.crowd.embedded.hibernate2.batch
Class SpringHibernate2SessionFactory

java.lang.Object
  extended by com.atlassian.crowd.embedded.hibernate2.batch.SpringHibernate2SessionFactory
All Implemented Interfaces:
Hibernate2SessionFactory

public class SpringHibernate2SessionFactory
extends java.lang.Object
implements Hibernate2SessionFactory

Uses SessionFactoryUtils to find the currently running session.


Constructor Summary
SpringHibernate2SessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 net.sf.hibernate.Session getCurrentSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringHibernate2SessionFactory

public SpringHibernate2SessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
Method Detail

getCurrentSession

public net.sf.hibernate.Session getCurrentSession()
Specified by:
getCurrentSession in interface Hibernate2SessionFactory
Returns:
Return the current session or null of no session is currently active.


Copyright © 2003-2014 Atlassian. All Rights Reserved.