public class HibernateSessionFactory extends Object
http://hibernate.org/42.html .| Modifier and Type | Method and Description |
|---|---|
static void |
closeSession()
Close the single hibernate session instance.
|
static org.hibernate.cfg.Configuration |
getConfiguration()
return hibernate configuration
|
static org.hibernate.Session |
getSession()
Returns the ThreadLocal Session instance.
|
static org.hibernate.SessionFactory |
getSessionFactory()
return session factory
|
static void |
rebuildSessionFactory()
Rebuild hibernate session factory
|
static void |
setConfigFile(String configFile)
return session factory
session factory will be rebuilded in the next call
|
public static org.hibernate.Session getSession()
throws org.hibernate.HibernateException
SessionFactory if needed.org.hibernate.HibernateExceptionpublic static void rebuildSessionFactory()
public static void closeSession()
throws org.hibernate.HibernateException
org.hibernate.HibernateExceptionpublic static org.hibernate.SessionFactory getSessionFactory()
public static void setConfigFile(String configFile)
public static org.hibernate.cfg.Configuration getConfiguration()