net.sf.ejbutil
Class HibernateUtil

java.lang.Object
  extended by net.sf.ejbutil.HibernateUtil

public class HibernateUtil
extends java.lang.Object


Field Summary
static java.lang.ThreadLocal session
           
 
Constructor Summary
HibernateUtil()
           
 
Method Summary
static void closeSession()
          closes Session, gebruik met currentSession
static org.hibernate.Session currentSession()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

public static final java.lang.ThreadLocal session
Constructor Detail

HibernateUtil

public HibernateUtil()
Method Detail

currentSession

public static org.hibernate.Session currentSession()
                                            throws org.hibernate.HibernateException
Returns:
Een sessie voor gebruik bij servlets
Throws:
org.hibernate.HibernateException

closeSession

public static void closeSession()
                         throws org.hibernate.HibernateException
closes Session, gebruik met currentSession

Throws:
org.hibernate.HibernateException