mgi.logme.util
Class HibernateUtil

java.lang.Object
  extended bymgi.logme.util.HibernateUtil

public class HibernateUtil
extends java.lang.Object

Hibernate Utility Klasse.


Field Summary
static java.lang.ThreadLocal session
           
 
Constructor Summary
HibernateUtil()
           
 
Method Summary
static void closeSession()
           
static net.sf.hibernate.Session currentSession()
           
static boolean hasOpenSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

hasOpenSession

public static boolean hasOpenSession()
                              throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

currentSession

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

closeSession

public static void closeSession()
                         throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException