com.opensymphony.user.provider.hibernate.dao
Class SessionManager

java.lang.Object
  extended bycom.opensymphony.user.provider.hibernate.dao.SessionManager

public class SessionManager
extends java.lang.Object

Author:
Matthew E. Porter

Constructor Summary
SessionManager(net.sf.hibernate.cfg.Configuration configuration)
           
SessionManager(net.sf.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 void closeSession(net.sf.hibernate.Session session)
           
 void flushCloseSession(net.sf.hibernate.Session session)
           
 net.sf.hibernate.Session getSession()
           
 net.sf.hibernate.SessionFactory getSessionFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManager

public SessionManager(net.sf.hibernate.cfg.Configuration configuration)
               throws net.sf.hibernate.HibernateException

SessionManager

public SessionManager(net.sf.hibernate.SessionFactory sessionFactory)
               throws net.sf.hibernate.HibernateException
Method Detail

getSession

public net.sf.hibernate.Session getSession()
                                    throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

getSessionFactory

public net.sf.hibernate.SessionFactory getSessionFactory()

closeSession

public void closeSession(net.sf.hibernate.Session session)

flushCloseSession

public void flushCloseSession(net.sf.hibernate.Session session)

See www.opensymphony.com for more information.