com.trackstudio.startup
Class HibernateSession

java.lang.Object
  extended by com.trackstudio.startup.HibernateSession

public class HibernateSession
extends java.lang.Object


Field Summary
static java.lang.ThreadLocal session
           
 
Constructor Summary
HibernateSession()
           
 
Method Summary
static void closeSession()
           
static org.hibernate.Session currentSession()
           
static org.hibernate.StatelessSession getStatelessSession()
           
 
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

HibernateSession

public HibernateSession()
Method Detail

currentSession

public static org.hibernate.Session currentSession()
                                            throws GranException
Throws:
GranException

getStatelessSession

public static org.hibernate.StatelessSession getStatelessSession()
                                                          throws GranException
Throws:
GranException

closeSession

public static void closeSession()


Copyright © 2002-2008 TrackStudio, Ltd. All Rights Reserved.