com.atlassian.hibernate
Class SpringPluginHibernateSessionFactory

java.lang.Object
  extended by com.atlassian.hibernate.SpringPluginHibernateSessionFactory
All Implemented Interfaces:
PluginHibernateSessionFactory

public final class SpringPluginHibernateSessionFactory
extends Object
implements PluginHibernateSessionFactory

A session factory that uses Spring's (2.x) standard way of accessing the session


Constructor Summary
SpringPluginHibernateSessionFactory(net.sf.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 net.sf.hibernate.Session getSession()
          Gets the current Hibernate session, may create a new one if needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringPluginHibernateSessionFactory

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

getSession

public net.sf.hibernate.Session getSession()
Description copied from interface: PluginHibernateSessionFactory
Gets the current Hibernate session, may create a new one if needed.

Specified by:
getSession in interface PluginHibernateSessionFactory
Returns:
the current Hibernate session


Copyright © 2003-2012 Atlassian. All Rights Reserved.