com.pmease.quickbuild.persistence
Class SessionManager

java.lang.Object
  extended by com.pmease.quickbuild.persistence.SessionManager

public class SessionManager
extends java.lang.Object

Manager of long session, which may span multiple transactions.


Constructor Summary
SessionManager()
           
 
Method Summary
static void closeSession()
           
static org.hibernate.Session getSession()
          Get the session opened currently
static org.hibernate.Session openSession()
           
static void setSession(org.hibernate.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManager

public SessionManager()
Method Detail

getSession

public static org.hibernate.Session getSession()
Get the session opened currently

Returns:
null if session is not opened currently

setSession

public static void setSession(org.hibernate.Session session)

openSession

public static org.hibernate.Session openSession()

closeSession

public static void closeSession()


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.