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.HibernateException
public static void rebuildSessionFactory()
public static void closeSession() throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static org.hibernate.SessionFactory getSessionFactory()
public static void setConfigFile(String configFile)
public static org.hibernate.cfg.Configuration getConfiguration()
Copyright © 2016. All rights reserved.