|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hu.elte.tribus.sf.HibernateSessionFactory
public class HibernateSessionFactory
Configures and provides access to Hibernate sessions, tied to the
current thread of execution. Follows the Thread Local Session
pattern, see http://hibernate.org/42.html
.
Method Summary | |
---|---|
static void |
closeSession()
Deprecated. Close the single hibernate session instance. |
static org.hibernate.cfg.Configuration |
getConfiguration()
Deprecated. return hibernate configuration |
static org.hibernate.Session |
getSession()
Deprecated. Returns the ThreadLocal Session instance. |
static org.hibernate.SessionFactory |
getSessionFactory()
Deprecated. return session factory |
static void |
rebuildSessionFactory()
Deprecated. Rebuild hibernate session factory |
static void |
setConfigFile(java.lang.String configFile)
Deprecated. return session factory session factory will be rebuilded in the next call |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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(java.lang.String configFile)
public static org.hibernate.cfg.Configuration getConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |