public class HibernateSessionFactory extends Object
http://hibernate.org/42.html .| 限定符和类型 | 方法和说明 |
|---|---|
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
|
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 org.hibernate.cfg.Configuration getConfiguration()