com.pmease.quickbuild.persistence
Class SessionManager
java.lang.Object
com.pmease.quickbuild.persistence.SessionManager
public class SessionManager
- extends java.lang.Object
Manager of long session, which may span multiple transactions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionManager
public SessionManager()
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.